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:
Conrad Meyer 2018-10-20 20:15:06 +00:00
parent 84880efae7
commit 494dda455c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339481

View File

@ -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();