void-packages/srcpkgs/audit/patches/seed-random.patch

14 lines
329 B
Diff

diff --git a/lib/test/lookup_test.c b/lib/test/lookup_test.c
index 03f40aa..7d17a90 100644
--- a/lib/test/lookup_test.c
+++ b/lib/test/lookup_test.c
@@ -48,6 +48,7 @@ gen_id(char *dest)
{
size_t i, len;
+ srand(300);
assert(S_LEN >= 2);
len = 1 + rand() % (S_LEN - 1);
assert('A' == 0x41 && 'a' == 0x61); /* ASCII */