fixed RAND_bytes return code checking

This commit is contained in:
nopjmp 2014-09-03 19:39:42 -05:00
parent f38ab35b5a
commit a710098493

View File

@ -269,7 +269,7 @@ double tglt_get_double_time (void) {
}
void tglt_secure_random (void *s, int l) {
if (RAND_bytes (s, l) < 0) {
if (RAND_bytes (s, l) <= 0) {
/*if (allow_weak_random) {
RAND_pseudo_bytes (s, l);
} else {*/