mirror of
https://github.com/urbit/shrub.git
synced 2024-12-27 06:02:27 +03:00
update openbsd c3_rand to use 512 bits of entropy
This commit is contained in:
parent
40180755c8
commit
d8ebde1a69
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user