gert <gert.cuyk...@gmail.com> writes:
> s = sha1(bytes(random(),'utf-8')).hexdigest()
> i found this, looks let say strange. But it works :)

Be careful, if you're relying on the uniqueness and unpredictability
of this number for program security, that random() isn't designed
for such purposes.  Use os.urandom instead.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to