Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
zephyr: use new random API header since v3.5
Browse files Browse the repository at this point in the history
Random API header `<zephyr/random/rand32.h>` is deprecated in
favor of `<zephyr/random/random.h>`. The old header will be
removed in future releases and its usage should be avoided.

Signed-off-by: Stephan Linz <[email protected]>
  • Loading branch information
rexut committed Nov 17, 2023
1 parent f48a1da commit 3ea6dff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions port/platform/zephyr/src/u_port_clib.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
#include <version.h>

#if KERNELVERSION >= ZEPHYR_VERSION(3,1,0)
#if KERNELVERSION >= ZEPHYR_VERSION(3,5,0)
#include <zephyr/random/random.h>
#else
#include <zephyr/random/rand32.h>
#endif
#else
#include <random/rand32.h>
#endif
Expand Down

0 comments on commit 3ea6dff

Please sign in to comment.