From: Nick Mathewson Date: Mon, 10 Jun 2013 14:33:56 +0000 (-0400) Subject: When we seed from /proc/sys/kernel/random/uuid, count it as success X-Git-Tag: release-2.0.22-stable~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e35b540832825437827addeb7ecd04c3e14d81bb;p=libevent When we seed from /proc/sys/kernel/random/uuid, count it as success Found by Joseph Spadavecchia --- diff --git a/arc4random.c b/arc4random.c index cabc46f4..33ddc2c7 100644 --- a/arc4random.c +++ b/arc4random.c @@ -286,6 +286,7 @@ arc4_seed_proc_sys_kernel_random_uuid(void) } memset(entropy, 0, sizeof(entropy)); memset(buf, 0, sizeof(buf)); + arc4_seeded_ok = 1; return 0; } #endif @@ -387,6 +388,7 @@ arc4_stir(void) */ for (i = 0; i < 12*256; i++) (void)arc4_getbyte(); + arc4_count = BYTES_BEFORE_RESEED; return 0;