mardi 24 août 2021

How do I change the Java source for random data?

I'm trying to run code on a machine where /dev/random does not fill up quickly, and a java program I'm trying to use is hanging for lack of random numbers.

/dev/urandom produces "not as good" random numbers, but isn't blocking, and for this case I'd rather have less randomness and completing, than better randomness but never completing.

I tried passing this to java

-Djava.security.egd=file:/dev/./urandom

But it didn't fix anything("/dewv/urandom" has problems in places, whereas "/dev/./urandom" works everywhere, which is why I used that path). Is there a way to do this?




Aucun commentaire:

Enregistrer un commentaire