Skip to content

Commit e9c133c

Browse files
committed
Update the test
1 parent e2e50d9 commit e9c133c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/s2n_random_test.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ int main(int argc, char **argv)
329329
**
330330
** To get good coverage we want to pick a value that maximizes
331331
** '((2^64 - bound) % bound)'. With bound = 6148914691236517206
332-
** ((2^64 / 3) + 1) we get a value of 6148914691236517204 for
332+
** ((2^64 / 3) + 1) we get a value of 6148914691236517204 for
333333
** the second piece. This maximizes the odds of our random
334-
** fぬnction taking the branches that we want to cover.
334+
** function taking the branches that we want to cover.
335335
**
336336
**/
337337
for (int i = 0; i < 1000000; i++) {
338338
EXPECT_OK(s2n_public_random(6148914691236517206, &r));
339-
EXPECT_TRUE(r <= 611686018427387906);
339+
EXPECT_TRUE(r <= 6148914691236517206);
340340
}
341341

342342
/* 0 should fail */

0 commit comments

Comments
 (0)