samedi 25 février 2017

How to get entropy from JVM?

Let's say I need good seed to initialize pseudo random generator (PRNG) in Java program and I don't have access to any hardware random generator.

How to get entropy from JVM without any user interaction?

I need many sources of entropy which will be combined to one byte array. Then I will generate digest of entropy which will be used to seed PRNG.




Aucun commentaire:

Enregistrer un commentaire