mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Make evutil_secure_rng_init() work even with builtin arc4random
This commit is contained in:
parent
71fc3eb08b
commit
f980716707
@ -43,6 +43,8 @@
|
|||||||
int
|
int
|
||||||
evutil_secure_rng_init(void)
|
evutil_secure_rng_init(void)
|
||||||
{
|
{
|
||||||
|
/* call arc4random() now to force it to self-initialize */
|
||||||
|
(void) arc4random();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user