Zephyr: Fix deprecation warning for rand32.h

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
This commit is contained in:
Tobias Frauenschläger
2023-10-25 13:21:40 +02:00
committed by Juliusz Sosinowicz
parent 2b1c61a013
commit 9d880fe161

View File

@@ -3522,7 +3522,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
#elif defined(WOLFSSL_ZEPHYR)
#include <version.h>
#if KERNEL_VERSION_NUMBER >= 0x30500
#include <zephyr/random/random.h>
#else
#include <zephyr/random/rand32.h>
#endif
#ifndef _POSIX_C_SOURCE
#include <zephyr/posix/time.h>
#else