mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Zephyr: Fix deprecation warning for rand32.h
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
This commit is contained in:
committed by
Juliusz Sosinowicz
parent
2b1c61a013
commit
9d880fe161
@@ -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
|
||||
|
Reference in New Issue
Block a user