mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
For type 0 rng lower initial drop to 50, it is enough to hide linearity
Reorganize historic #ifdef section
This commit is contained in:
parent
4cca7f0aed
commit
40220dde01
1 changed files with 5 additions and 1 deletions
|
|
@ -142,7 +142,11 @@ __FBSDID("$FreeBSD$");
|
|||
*/
|
||||
#define MAX_TYPES 5 /* max number of types above */
|
||||
|
||||
#define NSHUFF 100 /* to drop part of seed -> 1st value correlation */
|
||||
#ifdef USE_WEAK_SEEDING
|
||||
#define NSHUFF 0
|
||||
#else /* !USE_WEAK_SEEDING */
|
||||
#define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */
|
||||
#endif /* !USE_WEAK_SEEDING */
|
||||
|
||||
static long degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 };
|
||||
static long seps [MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue