1# SPDX-License-Identifier: Apache-2.0
2
3config FAKE_ENTROPY_NATIVE_SIM
4	bool "Native simulator entropy driver"
5	default y
6	depends on DT_HAS_ZEPHYR_NATIVE_POSIX_RNG_ENABLED || DT_HAS_ZEPHYR_NATIVE_SIM_RNG_ENABLED
7	select ENTROPY_HAS_DRIVER
8	help
9	  This option enables the test random number generator for the
10	  native_sim board (ARCH_POSIX). This is based on the host random() API.
11	  Note that this entropy generator is only meant for test purposes and does
12	  not generate real entropy.
13	  It actually generates always the same sequence of random numbers if
14	  initialized with the same seed.
15
16config FAKE_ENTROPY_NATIVE_SIM_SEED_BY_DEFAULT
17	bool "Seed the generator by default"
18	default y
19	depends on FAKE_ENTROPY_NATIVE_SIM
20	help
21	  Apply a seed by default, even if the user does not request it through the command line.
22	  Disabling this feature allows some other component to seed the host standard library random
23	  generator without this component's default initialization interfering.
24
25config FAKE_ENTROPY_NATIVE_POSIX
26	bool "Native posix entropy driver (deprecated)"
27	select FAKE_ENTROPY_NATIVE_SIM
28	select DEPRECATED
29	help
30	  Deprecated option in favour of FAKE_ENTROPY_NATIVE_SIM
31
32config FAKE_ENTROPY_NATIVE_POSIX_SEED_BY_DEFAULT
33	bool "Seed the generator by default (deprecated)"
34	depends on FAKE_ENTROPY_NATIVE_POSIX
35	select DEPRECATED
36	help
37	  Deprecated option. Replaced by FAKE_ENTROPY_NATIVE_SIM_SEED_BY_DEFAULT
38