From 328797f51a1cc879135e715255746152a025417f Mon Sep 17 00:00:00 2001 From: Songling Han Date: Mon, 28 Oct 2024 08:13:27 +0000 Subject: [PATCH] fix build error Signed-off-by: Songling Han --- src/common/rand/rand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/rand/rand.c b/src/common/rand/rand.c index b76c784d4..10f576425 100644 --- a/src/common/rand/rand.c +++ b/src/common/rand/rand.c @@ -25,9 +25,9 @@ void OQS_randombytes_openssl(uint8_t *random_array, size_t bytes_to_read); #ifdef OQS_USE_OPENSSL #include "../ossl_helpers.h" // Use OpenSSL's RAND_bytes as the default PRNG -static OQS_STATUS (*oqs_randombytes_algorithm)(uint8_t *, size_t) = &OQS_randombytes_openssl; +static void (*oqs_randombytes_algorithm)(uint8_t *, size_t) = &OQS_randombytes_openssl; #else -static OQS_STATUS (*oqs_randombytes_algorithm)(uint8_t *, size_t) = &OQS_randombytes_system; +static void (*oqs_randombytes_algorithm)(uint8_t *, size_t) = &OQS_randombytes_system; #endif OQS_API OQS_STATUS OQS_randombytes_switch_algorithm(const char *algorithm) { if (0 == strcasecmp(OQS_RAND_alg_system, algorithm)) {