Hello,
I have 2 perl processes which are running one after the other through a Makefile. During each run I would like to see both the perl processes get the same seed. A unique seed needs to be generated in each run. Both the perl processes are the same perl file run in 2 threads but sequentially.
For example: This is what I would like:
Run 1 : Perl process 0 generates seed 1446 and Perl process 1 also generates the same seed
Run 2 : Perl process 0 generates seed 1245 and Perl process 1 also generates the same seed
and so on.....
I tried using time() function in my perl program but each perl process got a different seed with that.
Any ideas how I can get both of them to get the same seed?