mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 03:15:21 +00:00
This should clear up some of the confusion with random number generators and drivers that obtain entropy from the hardware. Also, many hardware number generators have limited bandwidth, so it's natural for their output to be only used for seeding a random number generator. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Kconfig - random configuration options
|
|
#
|
|
# Copyright (c) 2017 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
config TEST_RANDOM_GENERATOR
|
|
bool
|
|
prompt "Non-random number generator"
|
|
depends on !ENTROPY_HAS_DRIVER
|
|
default n
|
|
help
|
|
This option signifies that the kernel's random number APIs are
|
|
permitted to return values that are not truly random.
|
|
This capability is provided for testing purposes, when a truly random
|
|
number generator is not available. The non-random number generator
|
|
should not be used in a production environment.
|
|
|
|
config X86_TSC_RANDOM_GENERATOR
|
|
bool
|
|
prompt "x86 timestamp counter based number generator"
|
|
depends on TEST_RANDOM_GENERATOR && X86
|
|
help
|
|
This options enables number generator based on timestamp counter
|
|
of x86 boards, obtained with rdtsc instruction.
|
|
|
|
config TIMER_RANDOM_GENERATOR
|
|
bool
|
|
prompt "System timer clock based number generator"
|
|
depends on TEST_RANDOM_GENERATOR
|
|
help
|
|
This options enables number generator based on system timer
|
|
clock. This number generator is not random and used for
|
|
testing only.
|