diff options
| author | Mark Murray <markm@FreeBSD.org> | 2018-08-26 12:51:46 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2018-08-26 12:51:46 +0000 |
| commit | 19fa89e93888ebfe79d06c7b831bcd39001dce63 (patch) | |
| tree | 8f0f5d7e4726f1bfb1272ba4d7410195426135e1 /sys/dev/random/randomdev.c | |
| parent | a1b042f79d71a3a444aef1281fa61ccd45064c6a (diff) | |
Notes
Diffstat (limited to 'sys/dev/random/randomdev.c')
| -rw-r--r-- | sys/dev/random/randomdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 51c25ba408a37..c7bb97c3a0fe8 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -166,7 +166,7 @@ READ_RANDOM_UIO(struct uio *uio, bool nonblock) * Belt-and-braces. * Round up the read length to a crypto block size multiple, * which is what the underlying generator is expecting. - * See the random_buf size requirements in the Yarrow/Fortuna code. + * See the random_buf size requirements in the Fortuna code. */ read_len = roundup(read_len, RANDOM_BLOCKSIZE); /* Work in chunks page-sized or less */ @@ -250,7 +250,6 @@ randomdev_accumulate(uint8_t *buf, u_int count) for (i = 0; i < RANDOM_KEYSIZE_WORDS; i += sizeof(event.he_entropy)/sizeof(event.he_entropy[0])) { event.he_somecounter = (uint32_t)get_cyclecount(); event.he_size = sizeof(event.he_entropy); - event.he_bits = event.he_size/8; event.he_source = RANDOM_CACHED; event.he_destination = destination++; /* Harmless cheating */ memcpy(event.he_entropy, entropy_data + i, sizeof(event.he_entropy)); |
