SHA-based subclass for random module

Paul Rubin http
Thu Mar 25 05:36:09 EST 2004


python at rcn.com (Raymond Hettinger) writes:
> > I was thinking the same.  How about something like:
> > 
> >    bigNumber = long(bigNumberString, 256)
> > 
> >    bigNumberString = bigNumber.tostring()
> 
> If this is something you want, file a feature request on SF.

I made a request like that a long while ago.  Guido suggested that it
be added to the binascii module, if I remember right.  See SF # 465045
but there may have been another one elsewhere as well.



More information about the Python-list mailing list