You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NativePRNGNonBlocking is not found, fallback to SHA1PRNG #964
I did some research and this SecureRandom instance is simply not available on windows.
Previous to java 9 there are only two implementations available on windows: WINDOWS-PRNG and SHA1PRNG. So a solution would either be to switch to the first for windows (but I don't know what the differences to the sha1prng are), or to check if windows is the current platform and supress/change the warning to include this problem.
From java 9 and up all platforms also support another implementation: DRBG. Ktor could check if such an implementation is available (should be simple to add).
Activity
PinkieSwirl commentedon Mar 11, 2019
I did some research and this
SecureRandominstance is simply not available on windows.Previous to java 9 there are only two implementations available on windows:
WINDOWS-PRNGandSHA1PRNG. So a solution would either be to switch to the first for windows (but I don't know what the differences to the sha1prng are), or to check if windows is the current platform and supress/change the warning to include this problem.From java 9 and up all platforms also support another implementation:
DRBG. Ktor could check if such an implementation is available (should be simple to add).What I'm currently doing is to set it my self:
The first line uses the DRBG, the second line configures it (optionally).
Since this got the problem tag I should note that for me this issue is now actually a bug and not a problem.
oleg-larshin commentedon Aug 10, 2020
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.