u-blox / ubxlib

Portable C libraries which provide APIs to build applications with u-blox products and services. Delivered as add-on to existing microcontroller and RTOS SDKs.
Apache License 2.0
287 stars 82 forks source link

Function rand() do not provide a return status #219

Closed abattistello-secpat closed 3 months ago

abattistello-secpat commented 3 months ago

Up to tag v1.2.0, the int rand() function in zephyr port does not provide a return status. Thus a possible problem or malfunction of the hardware generator is not handled. So for example if the hardware random number generator is stuck and always produces the same value (thus it is not random), the user would not be aware of it.

RobMeades commented 3 months ago

Hi and thanks for posting. This is true but, on the other hand, Zephyr is not our code: you could try posting an issue there: https://github.com/zephyrproject-rtos/zephyr.

RobMeades commented 3 months ago

I will close this: please feel free to re-open if there is more to discuss.