Skip to content
Snippets Groups Projects

Adding Noise module parameter that will allow the designer to specify a seed in order to re-run with the same RNG, also initializing the RNG with a tsc based seed by default. Updating some language around seeding the noise part.

@@ -89,9 +89,9 @@ sub frontEndInitCode {
#If we don't have an explicit seed set, get one from the tsc register
if ( $::noiseGeneratorSeed eq "none" ) {
$calcExp .= " rdtscl(noise_seed);\n";
$calcExp .= " rdtscl(noise_w);\n";
$calcExp .= " noise_seed |= (noise_w << 32UL);\n";
$calcExp .= "rdtscl(noise_seed);\n";
$calcExp .= "rdtscl(noise_w);\n";
$calcExp .= "noise_seed |= (noise_w << 32UL);\n";
}
else {
$calcExp .= "noise_seed = " . $::noiseGeneratorSeed . "UL;\n";
Loading