]> granicus.if.org Git - libevent/commitdiff
Make evutil_secure_rng_init() work even with builtin arc4random
authorNick Mathewson <nickm@torproject.org>
Fri, 23 Apr 2010 19:17:10 +0000 (15:17 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 23 Apr 2010 19:46:05 +0000 (15:46 -0400)
evutil_rand.c

index b86ecd8147c683c934e5ea3618511bee5487d7fe..a841f026535af7d24dd647439f583a703678f80f 100644 (file)
@@ -43,6 +43,8 @@
 int
 evutil_secure_rng_init(void)
 {
+       /* call arc4random() now to force it to self-initialize */
+       (void) arc4random();
        return 0;
 }