From 25c8356a6b1726c70a5b463ee8796554a3922201 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Mon, 9 Oct 2023 11:13:42 +0200 Subject: [PATCH] safety: panic() when calling random stub --- include/user_settings.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/user_settings.h b/include/user_settings.h index 19393e37e..420df28d6 100644 --- a/include/user_settings.h +++ b/include/user_settings.h @@ -300,7 +300,8 @@ extern int tolower(int c); #define WOLFSSL_PUBLIC_MP /* Configure RNG seed */ - #define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; 0;}) /* stub, not used */ + #include "loader.h" + #define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; wolfBoot_panic(); 0;}) /* stub, not used */ #define WC_RNG_SEED_CB #endif