Message157744
> 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. |
|
Date |
User |
Action |
Args |
2012-04-07 17:56:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, terry.reedy, vstinner, mattchaput |
2012-04-07 17:56:04 | serhiy.storchaka | set | messageid: <1333821364.16.0.0903568286301.issue12986@psf.upfronthosting.co.za> |
2012-04-07 17:56:03 | serhiy.storchaka | link | issue12986 messages |
2012-04-07 17:56:03 | serhiy.storchaka | create | |
|