Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default SecureRandom instance to make tests faster #91

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

timmc
Copy link
Contributor

@timmc timmc commented Dec 3, 2020

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.

`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- gurpreet- merged commit 838cee9 into terl:master Jan 18, 2021
@gurpreet-
Copy link
Contributor

Thanks! 🖖

@timmc timmc deleted the test-fast-random branch February 4, 2021 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants