Fortuna: trivial static variable cleanup
Remove unnecessary use of function-local static variable. 32 bytes is small enough to live on the stack. Reviewed by: delphij, markm Approved by: secteam (delphij) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D16937
This commit is contained in:
parent
84880efae7
commit
494dda455c
@ -333,7 +333,7 @@ random_fortuna_genblocks(uint8_t *buf, u_int blockcount)
|
||||
static __inline void
|
||||
random_fortuna_genrandom(uint8_t *buf, u_int bytecount)
|
||||
{
|
||||
static uint8_t temp[RANDOM_BLOCKSIZE*(RANDOM_KEYS_PER_BLOCK)];
|
||||
uint8_t temp[RANDOM_BLOCKSIZE * RANDOM_KEYS_PER_BLOCK];
|
||||
u_int blockcount;
|
||||
|
||||
RANDOM_RESEED_ASSERT_LOCK_OWNED();
|
||||
|
Loading…
x
Reference in New Issue
Block a user