mardi 8 août 2023

Get entropy for random number generator in Golang [closed]

I'm looking for a best way to provide entropy for my random number generator. As far as I understand it is secure to use /dev/random on Linux machine for the entropy source and not as much secure to use /dev/urandom.

If use "crypto/rand" Reader for entropy it can automatically use /dev/urandom. And I wasn't able to find a lib that would use only /dev/random.

Maybe someone can advise a good one or a different approach? Having entropy estimation test from NIST 800-90b included would be perfect!

|https://ift.tt/eU4cY3V

Thanks!




Aucun commentaire:

Enregistrer un commentaire