mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
When we seed from /proc/sys/kernel/random/uuid, count it as success
Found by Joseph Spadavecchia
This commit is contained in:
parent
e826f19e05
commit
e35b540832
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user