From f9807167075aacc512ad7bca007064449eee93d9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 23 Apr 2010 15:17:10 -0400 Subject: [PATCH] Make evutil_secure_rng_init() work even with builtin arc4random --- evutil_rand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evutil_rand.c b/evutil_rand.c index b86ecd81..a841f026 100644 --- a/evutil_rand.c +++ b/evutil_rand.c @@ -43,6 +43,8 @@ int evutil_secure_rng_init(void) { + /* call arc4random() now to force it to self-initialize */ + (void) arc4random(); return 0; } -- 2.40.0