Skip to content

Commit

Permalink
random: Revert back to the default fortuna minpool size
Browse files Browse the repository at this point in the history
This hack should no longer be needed since we use the virtio-random PV
device to provide entropy to QEMU instances.

This reverts commit a060345.
  • Loading branch information
bsdjhb committed Jan 14, 2025
1 parent b251896 commit 8f4685d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/dev/random/fortuna.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CTASSERT(RANDOM_FORTUNA_BLOCKS_PER_KEY * RANDOM_BLOCKSIZE ==
* Making RANDOM_FORTUNA_DEFPOOLSIZE too large will mean a long time between reseeds,
* and too small may compromise initial security but get faster reseeds.
*/
#define RANDOM_FORTUNA_MINPOOLSIZE 1
#define RANDOM_FORTUNA_MINPOOLSIZE 16
#define RANDOM_FORTUNA_MAXPOOLSIZE INT_MAX
CTASSERT(RANDOM_FORTUNA_MINPOOLSIZE <= RANDOM_FORTUNA_DEFPOOLSIZE);
CTASSERT(RANDOM_FORTUNA_DEFPOOLSIZE <= RANDOM_FORTUNA_MAXPOOLSIZE);
Expand Down
2 changes: 1 addition & 1 deletion sys/dev/random/fortuna.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/* Defined in FS&K */
#define RANDOM_FORTUNA_NPOOLS 32 /* The number of accumulation pools */
#define RANDOM_FORTUNA_DEFPOOLSIZE 1 /* The default pool size/length for a (re)seed */
#define RANDOM_FORTUNA_DEFPOOLSIZE 64 /* The default pool size/length for a (re)seed */

#ifdef _KERNEL
typedef struct mtx mtx_t;
Expand Down

0 comments on commit 8f4685d

Please sign in to comment.