Merge github.com:vysheng/tg
This commit is contained in:
commit
19e06898ac
2
tools.c
2
tools.c
@ -269,7 +269,7 @@ double tglt_get_double_time (void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void tglt_secure_random (void *s, int l) {
|
void tglt_secure_random (void *s, int l) {
|
||||||
if (RAND_bytes (s, l) < 0) {
|
if (RAND_bytes (s, l) <= 0) {
|
||||||
/*if (allow_weak_random) {
|
/*if (allow_weak_random) {
|
||||||
RAND_pseudo_bytes (s, l);
|
RAND_pseudo_bytes (s, l);
|
||||||
} else {*/
|
} else {*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user