X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/88203f87b45548f1751a750ab0ec835eaf945636..198b77a35965824ae4115a3488d3ecb72431c5f6:/t/rng.c diff --git a/t/rng.c b/t/rng.c index cbab4a7..3842d3d 100644 --- a/t/rng.c +++ b/t/rng.c @@ -1,6 +1,6 @@ /* * Simple random number generator for testing. - * Copyright © 2022-2023 Nick Bowler + * Copyright © 2022-2024 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -83,6 +83,7 @@ struct test_rng *test_rng_alloc(const char *seed_str) fprintf(stderr, "%s: invalid seed\n", seed_str); return NULL; } + seed = seed_val; rng = malloc_nofail(sizeof *rng); rng->state[0] = splitmix64(&seed);