pseudorand: make the results in deterministic mode per-caller.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -21,7 +21,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv);
|
||||
/* Provide a non-random pseudo-random function to speed fuzzing. */
|
||||
static isaac64_ctx isaac64;
|
||||
|
||||
uint64_t pseudorand(uint64_t max)
|
||||
uint64_t pseudorand_(uint64_t max, uint64_t *offset)
|
||||
{
|
||||
assert(max);
|
||||
return isaac64_next_uint(&isaac64, max);
|
||||
|
||||
Reference in New Issue
Block a user