search for: seed_source

Displaying 1 result from an estimated 1 matches for "seed_source".

2001 Jun 07
2
Patch to enable multiple possible sources of entropy
...************* *** 912,915 **** prng_initialised = 1; } ! #endif /* defined(USE_PRNGD) || defined(RANDOM_POOL) */ --- 883,979 ---- prng_initialised = 1; } ! #endif /* USE_BUILTIN_ENTROPY */ ! ! #define BUILTIN_SOURCE 1 ! #define PRNGD_SOURCE 2 ! #define POOL_SOURCE 3 ! ! static int seed_source = 0; ! ! void ! init_rng(void) ! { ! check_openssl_version(); ! ! #ifdef RANDOM_POOL ! #if !defined(USE_PRNGD) && !defined(USE_BUILTIN_ENTROPY) ! seed_source = POOL_SOURCE; ! #else ! if (access(RANDOM_POOL, R_OK) == 0) { ! seed_source = POOL_SOURCE; ! return; ! } ! #endif ! #endif...