[python3.0] s = sha1(random()).hexdigest()

gert gert.cuykens at gmail.com
Thu Jan 15 19:14:46 EST 2009


from random import random
from hashlib import sha1
s = sha1(random()).hexdigest()

TypeError: object supporting the buffer API required,

How does sha1 work in python3.0 please ?



More information about the Python-list mailing list