-
I'm on the latest versions of everything and let's say I want to generate a random number with a ST Nucleo L552ZE Q, which I see has an entropy driver supported. Let's say I have the following code and use
This program complies, but I always get the same number printed out. If I replace the test random number generator with anything else, i.e. use
I must have missed something here because the documentation explicitly says the RNG feature on my ST board is supported. How should I use Zephyr's RNG? Thanks for any help in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To use a RNG on a Nucleo, you can do some like
And you get
|
Beta Was this translation helpful? Give feedback.
CONFIG_TEST_RANDOM_GENERATOR
is not a real one. See https://docs.zephyrproject.org/latest/services/crypto/random/index.html#kconfig-optionsTo use a RNG on a Nucleo, you can do some like
And you get