lundi 18 juin 2018

Java: How do I set the nonce when using DRBG SecureRandom?

Java 9 introduced a new SecureRandom called DRBG. I want to use it to deterministically generate random numbers. The problem is that it uses a nonce internally which it always changes, so I don't get the same numbers for the same seeds. It does have an option internally to set that nonce, but I can't find any public methods that can accomplish that. How can I change that nonce?




Aucun commentaire:

Enregistrer un commentaire