Merged in feature/allow_user_random_seed (pull request #245)
3f28cf1·Author: David Dickinson·Closed by: David Dickinson·2020-03-04
Description
Correct comment
Add knobs::seed input variable.
This allows the user to influence the seed used by the random number generators.
Set the random generator seed from the input variable
Tidy up whitespace
Add comment about seed choice to ingen output
Note the seed actually used is just derived from this user input. There are some potential issues with the lcg method used to generate the final seed from the input, mainly that the output will all have one sign. This is probably ok but we could generate the final seed using the system generator with the lcg produced seed acting as an intermediate (i.e. add a second pass after setting the seed from the lcg values that generates a new seed from the random number generator).
Correct comment
Add knobs::seed input variable.
This allows the user to influence the seed used by the random number generators.
Set the random generator seed from the input variable
Tidy up whitespace
Add comment about seed choice to ingen output
Note the seed actually used is just derived from this user input. There are some potential issues with the
lcg
method used to generate the final seed from the input, mainly that the output will all have one sign. This is probably ok but we could generate the final seed using the system generator with thelcg
produced seed acting as an intermediate (i.e. add a second pass after setting the seed from thelcg
values that generates a new seed from the random number generator).Â