diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 93cdb9362..4e4f4e238 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -794,7 +794,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz) int rctFailed = 0; int aptFailed = 0; - if (seed == NULL || seedSz == 0) { + if (seed == NULL || seedSz < SEED_BLOCK_SZ) { return BAD_FUNC_ARG; }