lundi 25 novembre 2019

python systemrandom for unique numbers

I need to generate a globally unique integer identifier.

Does the number generated using

from random import SystemRandom
SystemRandom().getrandbits(64)

Is guaranteed to be unique?




Aucun commentaire:

Enregistrer un commentaire