By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

random number for multi VM's all starting at same time

P: 1
linked to 'Can't get true random numbers'

but out app is running on multipul VMs and they all start at the same time, so we cannot use time as seed.

any ideas on how we can get a truly random number?
Sep 19 '12 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 8,434
Have you tried? The "same" time may not be precisely the same when dealing with microseconds.
Sep 19 '12 #2

Expert Mod 10K+
P: 12,383
Yeah, it's doubtful all 4 are running in exact synchronization down to the millisecond. Even if they are, in addition to the time, you just need to introduce a new factor into the seed that is unique to each machine, like an IP address or something.
Sep 19 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.