diff options
Diffstat (limited to 'include/trng.h')
-rw-r--r-- | include/trng.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/trng.h b/include/trng.h index ec56829e54..e50b12a2a6 100644 --- a/include/trng.h +++ b/include/trng.h @@ -5,6 +5,7 @@ #ifndef __EC_INCLUDE_TRNG_H #define __EC_INCLUDE_TRNG_H +#include <common.h> #include <stddef.h> #include <stdint.h> @@ -30,7 +31,9 @@ void exit_trng(void); * * Not supported on all platforms. **/ -uint32_t rand(void); +#ifndef HIDE_EC_STDLIB +__stdlib_compat uint32_t rand(void); +#endif /** * Output len random bytes into buffer. |