Addressing a bug in the test logic

This commit is contained in:
kaleb-himes
2025-11-05 10:28:19 -07:00
parent d73af7ab77
commit b379de4119

View File

@@ -114,7 +114,7 @@ int test_wc_RNG_GenerateBlock(void)
ExpectIntEQ(wc_RNG_GenerateBlock(NULL, key , sizeof(key)),
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
for (i = 0; i <= (int)sizeof(key); i++) {
for (i = 0; i < (int)sizeof(key); i++) {
ExpectIntEQ(wc_RNG_GenerateBlock(&rng, key + i, sizeof(key) - i), 0);
}
DoExpectIntEQ(wc_FreeRng(&rng), 0);