'section' : 'recursor',
'type' : LType.String,
'default' : '/dev/urandom',
- 'help' : 'If set, read entropy from this file',
+ 'help' : '',
'doc' : '''
-PowerDNS can read entropy from a (hardware) source.
-This is used for generating random numbers which are very hard to predict.
-Generally on UNIX platforms, this source will be ``/dev/urandom``, which will always supply random numbers, even if entropy is lacking.
-Change to ``/dev/random`` if PowerDNS should block waiting for enough entropy to arrive.
''',
'skip-yaml': True,
'versionchanged': ('4.9.0', 'This setting is no longer used.'),
'section' : 'recursor',
'type' : LType.String,
'default' : 'auto',
- 'help' : 'Specify random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom.',
- 'doc' : '''
-- String
-- Default: auto
-
-Specify which random number generator to use. Permissible choices are
- - auto - choose automatically
- - sodium - Use libsodium ``randombytes_uniform``
- - openssl - Use libcrypto ``RAND_bytes``
- - getrandom - Use libc getrandom, falls back to urandom if it does not really work
- - arc4random - Use BSD ``arc4random_uniform``
- - urandom - Use ``/dev/urandom``
- - kiss - Use simple settable deterministic RNG. **FOR TESTING PURPOSES ONLY!**
+ 'help' : '',
+ 'doc' : '''
''',
'skip-yaml': True,
'versionchanged': ('4.9.0', 'This setting is no longer used.')
static bool init_unit_test()
{
- ::arg().set("rng") = "auto";
- ::arg().set("entropy-source") = "/dev/urandom";
// Force init while we are still unthreaded
dns_random_uint16();
g_slog = Logging::Logger::create(loggerBackend);