The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_TEST_RANDOM_GENERATOR

Non-random number generator

Type: bool

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.

Direct dependencies

!ENTROPY_HAS_DRIVER

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/random/Kconfig:8

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:53

Menu path: (Top) → Sub Systems and OS Services → Random Number Generators

config TEST_RANDOM_GENERATOR
    bool "Non-random number generator"
    depends on !ENTROPY_HAS_DRIVER
    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.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)