Page MenuHomeFreeBSD

D16984.diff
No OneTemporary

D16984.diff

Index: head/sys/dev/random/fortuna.c
===================================================================
--- head/sys/dev/random/fortuna.c
+++ head/sys/dev/random/fortuna.c
@@ -368,11 +368,11 @@
u_int i;
KASSERT(fortuna_state.fs_minpoolsize > 0, ("random: Fortuna threshold must be > 0"));
+ RANDOM_RESEED_LOCK();
#ifdef _KERNEL
/* FS&K - Use 'getsbinuptime()' to prevent reseed-spamming. */
now = getsbinuptime();
#endif
- RANDOM_RESEED_LOCK();
if (fortuna_state.fs_pool[0].fsp_length >= fortuna_state.fs_minpoolsize
#ifdef _KERNEL

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 5, 7:39 AM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36014915
Default Alt Text
D16984.diff (550 B)

Event Timeline