Print Verilator random seed when +verbose is passed
This commit is contained in:
1 parent
67593fdf2d
commit
6472d4c245
1 file changed
+3
@@ -61,6 +61,9 @@ int main(int argc, char** argv)
|
||||
print_cycles = true;
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
fprintf(stderr, "using random seed %u\n", random_seed);
|
||||
|
||||
srand(random_seed);
|
||||
srand48(random_seed);
|
||||
|
||||
|
||||
Reference in new issue
Block a user