s = sha1(random()).hexdigest()

Paul Rubin http
Fri Jan 16 00:12:19 EST 2009


"James Mills" <prologic at shortcircuit.net.au> writes:
> >>> "".join([hex(c) for c in os.urandom(10)])
> '0x540x6c0xdf0xd90xe10x7c0x330x370x9a0x8'

That doesn't look so good, because of all the 0x.  



More information about the Python-list mailing list