Re: [Sugar-devel] Random numbers and the Journal

2009-06-05 Thread James Zaki
> 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, Perhaps its not the best practice to rely on a random number generator to give unique identifiers. Would you not store a number with

Re: [Sugar-devel] Random numbers and the Journal

2009-06-05 Thread Tomeu Vizoso
On Fri, Jun 5, 2009 at 01:54, Benjamin M. Schwartz wrote: > 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

[Sugar-devel] Random numbers and the Journal

2009-06-04 Thread Benjamin M. Schwartz
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 th