mercredi 14 décembre 2022

How to generate random string without using os and random library [duplicate]

I want to create a random 8 bytes string without using os.urandom or random library.

With os, I can do ''.join(os.urandom(8)).

With random, I can do ''.join(chr(random.randint(0, 255)) for _ in range(8)).

How can I do it without these 2 libraries?




Aucun commentaire:

Enregistrer un commentaire