From 52e7269ea633b7ac3d83d7b5cba9b15c5fbcbef9 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Sun, 14 Aug 2022 21:28:54 -0400 Subject: misc/random: add xoshiro random number implementation Add xoshiro as a PRNG implementation instead of relying on srand() and rand() from the C standard library. This, in particular, lets us avoid platform-defined behavior with respect to threading. --- meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 3a1fe0b471..3d78eec5dd 100644 --- a/meson.build +++ b/meson.build @@ -134,6 +134,7 @@ sources = files( 'misc/json.c', 'misc/natural_sort.c', 'misc/node.c', + 'misc/random.c', 'misc/rendezvous.c', 'misc/thread_pool.c', 'misc/thread_tools.c', -- cgit v1.2.3