update openbsd c3_rand to use 512 bits of entropy

This commit is contained in:
Philip C Monk 2016-08-12 14:58:52 -04:00
parent 40180755c8
commit d8ebde1a69

View File

@ -184,7 +184,7 @@
/* Entropy /* Entropy
*/ */
# if defined(U3_OS_bsd) && defined(__OpenBSD__) # if defined(U3_OS_bsd) && defined(__OpenBSD__)
# define c3_rand(rd) (getentropy((void*)rd, 32) == 0 ? \ # define c3_rand(rd) (getentropy((void*)rd, 64) == 0 ? \
(void)0 : c3_assert(!"ent")) (void)0 : c3_assert(!"ent"))
# else # else
# define c3_rand u3_sist_rand # define c3_rand u3_sist_rand