[
https://issues.apache.org/jira/browse/RNG-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921261#comment-16921261
]
Alex D Herbert commented on RNG-19:
-----------------------------------
I have merged the wrapper into master. Although the wrapper that can use
SecureRandom is not a direct implementation of reading from {{/dev/urandom}}
this should satisfy the original wish. Functionality is as previously suggested:
{code:java}
UniformRandomProvider rng =
new JDKRandomWrapper(SecureRandom.getInstance("NativePRNGNonBlocking"));
{code}
Requires:
- Linux/MacOS
- Java 1.8
> System generator (/dev/random)
> ------------------------------
>
> Key: RNG-19
> URL: https://issues.apache.org/jira/browse/RNG-19
> Project: Commons RNG
> Issue Type: Wish
> Reporter: Emmanuel Bourg
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Commons RNG could include a random number generator based on the output of
> /dev/random or /dev/urandom on Unix systems.
> Commons Crypto has an implementation that could be used as a starting point:
> https://github.com/apache/commons-crypto/blob/master/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java
--
This message was sent by Atlassian Jira
(v8.3.2#803003)