This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,21 @@
(* Insecure predictable RNG for fuzz testing. *)
type g = int ref
let block = 1
let create ?time:_ () = ref 1234
let generate_into ~g buf ~off n =
for i = off to off + n - 1 do
Bytes.set_uint8 buf i !g;
g := !g + 1
done
let reseed ~g:_ _ = ()
let accumulate ~g:_ _ = `Acc ignore
let seeded ~g:_ = true
let pools = 0