lundi 18 novembre 2019

How secure would it be to choose a random number based on time?

If I had an online room of 10 users arriving at different times and I wanted to pick up a random user once the room is full, would it be secure to select the user by using the timestamp of when the last user joined the room and simply do a % 10 ?

The timestamp would be in milliseconds.

If the answer to my question is no would it be better to add a random delay before selecting the timestamp ?




Aucun commentaire:

Enregistrer un commentaire