mirror of https://github.com/ARMmbed/mbed-os.git
Fix compilation warning
Fix warning in entropy.c caused by injecting seed read & write callbackspull/9566/head
parent
95906f1062
commit
6e87615dc4
|
@ -3,6 +3,8 @@
|
||||||
#ifndef DEFAULT_RANDOM_SEED_H
|
#ifndef DEFAULT_RANDOM_SEED_H
|
||||||
#define DEFAULT_RANDOM_SEED_H
|
#define DEFAULT_RANDOM_SEED_H
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
* This file is part of mbed TLS (https://tls.mbed.org)
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(TARGET_PSA)
|
||||||
|
#include "default_random_seed.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if DEVICE_TRNG
|
#if DEVICE_TRNG
|
||||||
#define MBEDTLS_ENTROPY_HARDWARE_ALT
|
#define MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue