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