This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired 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:34subsys/Kconfig:44

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.)