1
0

Print Verilator random seed when +verbose is passed

This commit is contained in:
Andrew Waterman 2016-10-04 22:27:28 -07:00
parent 67593fdf2d
commit 6472d4c245

View File

@ -61,6 +61,9 @@ int main(int argc, char** argv)
print_cycles = true; print_cycles = true;
} }
if (verbose)
fprintf(stderr, "using random seed %u\n", random_seed);
srand(random_seed); srand(random_seed);
srand48(random_seed); srand48(random_seed);