Author serhiy.storchaka
Recipients mattchaput, rhettinger, serhiy.storchaka, terry.reedy, vstinner
Date 2012-04-07.17:56:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333821364.16.0.0903568286301.issue12986@psf.upfronthosting.co.za>
In-reply-to
Content
>         uuids = set()
>         for u in [uuid.uuid4() for i in range(1000)]:
>             uuids.add(u)

        uuids = {uuid.uuid4() for i in range(1000)}

However, I'm not sure of the legitimacy of replacement suitable for cryptographic use `os.urandom` on fast pseudo-random `random.getrandbits`. Especially for applications that need to generate a lot of uuids.
History
Date User Action Args
2012-04-07 17:56:04serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, terry.reedy, vstinner, mattchaput
2012-04-07 17:56:04serhiy.storchakasetmessageid: <1333821364.16.0.0903568286301.issue12986@psf.upfronthosting.co.za>
2012-04-07 17:56:03serhiy.storchakalinkissue12986 messages
2012-04-07 17:56:03serhiy.storchakacreate