Class LinuxSecureRandom

java.lang.Object
java.security.SecureRandomSpi
org.xrpl.xrpl4j.crypto.core.LinuxSecureRandom
All Implemented Interfaces:
Serializable

public class LinuxSecureRandom extends SecureRandomSpi
Implementation from web3j, which itself was taken from BitcoinJ.

A SecureRandom implementation that is able to override the standard JVM provided implementation, and which simply serves random numbers by reading /dev/urandom. That is, it delegates to the kernel on UNIX systems and is unusable on other platforms. Attempts to manually set the seed are ignored. There is no difference between seed bytes and non-seed bytes, they are all from the same source.

See Also:
  • "https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/LinuxSecureRandom.java"
  • Serialized Form
  • Constructor Details

    • LinuxSecureRandom

      public LinuxSecureRandom()
      No-args Constructor.
  • Method Details