diff options
| author | Mark Murray <markm@FreeBSD.org> | 2003-11-17 23:02:21 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2003-11-17 23:02:21 +0000 |
| commit | 0887c8c110da2f060bc422e6942320054bcc755d (patch) | |
| tree | 3d031ff4aa808b1f35307d1c7c1e8da496ee119c /sys/dev/random/randomdev.h | |
| parent | 64d19c2ea7076554293329f9f2624d3937857527 (diff) | |
Notes
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); |
