lundi 25 février 2019

How does IntRange.random() introduce entropy in Kotlin

I'm planning on using IntRange.random() (i.e. (0,9999).random()) to generate a random 5 digit code in Kotlin. It's important that malicious people cannot predict the sequence of numbers that will be generated.

Does IntRange.random() ensures that there is entropy when generating these numbers? i.e. How is the seed generated and is a new seed generated each time IntRange.random() is called?

Thanks!




Aucun commentaire:

Enregistrer un commentaire