[issue40560] uuid.uuid4().hex not random

2020-05-08 Thread Lars
Lars added the comment: Ok that makes sense. Thanks for letting me know. Should have read the doku more precisely. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue40560] uuid.uuid4().hex not random

2020-05-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is expected, while part of them are randomly generated, some bits are always set: https://tools.ietf.org/html/rfc4122#section-4.1.3. This let you know that the UUID you have is a version 4 just by looking at it, it's not a bug. -- components: +Lib

[issue40560] uuid.uuid4().hex not random

2020-05-08 Thread Lars
New submission from Lars : Hi everybody I just noticed that the uuid.uuid4().hex command does not create fully random hex values. The character on the 13th position is always 4 and the 17th position is equally distributed 8,9,a,b. One million uuids follow following distribution. {'0': 62312