The problems with randrange also occur when I run it directly from a
normal python prompt.

>>> random.randrange(0, 2<<63)
instantly returns me the random numbers.

whereas
>>> random.SystemRandom().randrange(0, 2<<63)
Takes forever to run. I cancelled the execution after about 10
minutes.

As an interesting side notice:
>>> random.SystemRandom().randrange(0, 2<<51)
works fine and returns instantly with a random number

>>> random.SystemRandom().randrange(0, 2<<52)
however seems to run forever without any result...

So it doesn't seem to be a django problem, but it still is very
annoying.

> If the host has not enough entropy, Django shouldn't fix it, an
> administrator should.
Are there any suggestions how I could fix it? I don't even know where
to start looking...

PS:
>>> random.SystemRandom().randrange(0, 2<<63)
works without any problems on my windows machine and on another hosted
linux server where I have access to.

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to