Skip to content

Commit 9d880fe

Browse files
Frauschijulek-wolfssl
authored andcommitted
Zephyr: Fix deprecation warning for rand32.h
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
1 parent 2b1c61a commit 9d880fe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

wolfcrypt/src/random.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,7 +3522,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
35223522

35233523
#elif defined(WOLFSSL_ZEPHYR)
35243524

3525+
#include <version.h>
3526+
3527+
#if KERNEL_VERSION_NUMBER >= 0x30500
3528+
#include <zephyr/random/random.h>
3529+
#else
35253530
#include <zephyr/random/rand32.h>
3531+
#endif
3532+
35263533
#ifndef _POSIX_C_SOURCE
35273534
#include <zephyr/posix/time.h>
35283535
#else

0 commit comments

Comments
 (0)