]> git.ipfire.org Git - thirdparty/valgrind.git/commit
iropt regtest: use mrand32() instead of rand()
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 17 Jul 2025 18:38:54 +0000 (20:38 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 17 Jul 2025 18:38:54 +0000 (20:38 +0200)
commitc322bf33df88d1e8813434f7beeba909831a6a79
treea880395fa506cd5e9e07f2b8ab18d7c6ce13b684
parenta3b172bd1235f9b74736a7f12a4a4072037b7900
iropt regtest: use mrand32() instead of rand()

On illumos rand() has a RAND_MAX of 32k only. That's not enough to
generate 64bit values easily. So use mrand48() which genrerates
the full range of 32bit int values.
none/tests/iropt-test/main.c
none/tests/iropt-test/util.c