Skip to content

Commit fe69a7c

Browse files
authored
Merge pull request #9390 from kaleb-himes/test-code-bug-fix
Addressing a bug in the test logic
2 parents 97e9fa0 + b379de4 commit fe69a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api/test_random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int test_wc_RNG_GenerateBlock(void)
114114
ExpectIntEQ(wc_RNG_GenerateBlock(NULL, key , sizeof(key)),
115115
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
116116

117-
for (i = 0; i <= (int)sizeof(key); i++) {
117+
for (i = 0; i < (int)sizeof(key); i++) {
118118
ExpectIntEQ(wc_RNG_GenerateBlock(&rng, key + i, sizeof(key) - i), 0);
119119
}
120120
DoExpectIntEQ(wc_FreeRng(&rng), 0);

0 commit comments

Comments
 (0)