terl / lazysodium-java

A Java implementation of the Libsodium crypto library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
134 stars 46 forks source link

Use default SecureRandom instance to make tests faster #91

Closed timmc closed 3 years ago

timmc commented 3 years ago

SecureRandom.instanceStrong() was making unattended test runs take up to 15 minutes rather than a few seconds. I think it was pulling from /dev/random on my laptop, and there was insufficient "new entropy", causing it to block repeatedly.

gurpreet- commented 3 years ago

Thanks! 🖖