diff options
Diffstat (limited to 'sys/dev/random/randomdev.h')
| -rw-r--r-- | sys/dev/random/randomdev.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.h b/sys/dev/random/randomdev.h index 359dc269d50c..aa23fc8e7b1b 100644 --- a/sys/dev/random/randomdev.h +++ b/sys/dev/random/randomdev.h @@ -46,14 +46,17 @@ SYSCTL_DECL(_kern_random); +MALLOC_DECLARE(M_ENTROPY); + /* These are used to queue harvested packets of entropy. The entropy * buffer size is pretty arbitrary. */ struct harvest { - u_int64_t somecounter; /* fast counter for clock jitter */ + uintmax_t somecounter; /* fast counter for clock jitter */ u_char entropy[HARVESTSIZE]; /* the harvested entropy */ u_int size, bits, frac; /* stats about the entropy */ enum esource source; /* stats about the entropy */ + STAILQ_ENTRY(harvest) next; /* next item on the list */ }; void random_init(void); |
