Duplicate output when using srand for random seeds
I am using srand (time (NULL)); to generate a random seed.
The problem is I am submitting 30+ of the same jobs to the LINUX cluster. If I send them one at a time, everything is fine, but of course I prefer to use a batch job to send all 30 at the same time. Much easier and faster. The problem is that multiple batches of jobs seem to be available at exactly the same time, and I get duplicate results! Can anyone suggest a simple solution?
source to share