[Sugar-devel] Random numbers and the Journal

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Thu Jun 4 19:54:46 EDT 2009


I'm using python's random.getrandbits() to generate unique identifiers in
my program.  However, I've discovered that when I start it from the
Journal, I get errors, which I can trace to the random number generator
producing the same sequence of random numbers that was generated when I
started it the first time.  It is as if the random seed is being reset
every time I launch from the Journal.

Does anyone know what's going on here?

Thanks,
Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090604/967e2093/attachment.pgp 


More information about the Sugar-devel mailing list