Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59044
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Code with random module faster on the vm than the vm host... |
| Date | 2013-11-11 12:16 +1000 |
| Organization | A noiseless patient Spider |
| Message-ID | <l5pela$dk$1@dont-email.me> (permalink) |
| References | <mailman.2249.1383942084.18130.python-list@python.org> <l5p9j4$ad6$1@dont-email.me> <mailman.2357.1384132761.18130.python-list@python.org> |
On 11/11/2013 11:19 AM, Robert Kern wrote: > On 2013-11-11 00:49, alex23 wrote: >> The random module uses os.urandom, > > No, it doesn't. random.random() is an alias to the random() method on > the random.Random class, which uses the Mersenne Twister to generate > values. os.urandom() gets called in the initial default seeding, but not > for each value. That's what I get for rapidly skimming the module rather than looking at it carefully. Cheers.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Code with random module faster on the vm than the vm host... Pascal Bit <pascalbit@hotmail.com> - 2013-11-08 18:48 +0100
Re: Code with random module faster on the vm than the vm host... alex23 <wuwei23@gmail.com> - 2013-11-11 10:49 +1000
Re: Code with random module faster on the vm than the vm host... Robert Kern <robert.kern@gmail.com> - 2013-11-11 01:19 +0000
Re: Code with random module faster on the vm than the vm host... alex23 <wuwei23@gmail.com> - 2013-11-11 12:16 +1000
Re: Code with random module faster on the vm than the vm host... Ned Batchelder <ned@nedbatchelder.com> - 2013-11-10 17:15 -0800
Re: Code with random module faster on the vm than the vm host... Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-11 01:31 +0000
csiph-web