The current code base uses a few unseeded random.Random() calls. This causes the generated asm to be non-reproducable. Ideally we would have the user provide a seed to generate random values
Beyond the benefit of reproducible tests, this change also allows developers to see at a glance if a function uses a random value (since it will have rand: random.Random in it's function signature).
Directories with random.* calls
There might be other directories I missed, but I'll revise this issue when I discover them.
Race conditions:
The current code base uses a few unseeded random.Random() calls. This causes the generated asm to be non-reproducable. Ideally we would have the user provide a seed to generate random values
Beyond the benefit of reproducible tests, this change also allows developers to see at a glance if a function uses a random value (since it will have
rand: random.Randomin it's function signature).Directories with
random.*calls/passesSeed randomness in/passesdirectory #40/target/isa/utils/wrappers/policiesThere might be other directories I missed, but I'll revise this issue when I discover them.
Race conditions:
riscv-common/isa.py