public class LinuxSecureRandom
extends java.security.SecureRandomSpi
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.
Constructor and Description |
---|
LinuxSecureRandom() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineGenerateSeed(int i) |
protected void |
engineNextBytes(byte[] bytes) |
protected void |
engineSetSeed(byte[] bytes) |
protected void engineSetSeed(byte[] bytes)
engineSetSeed
in class java.security.SecureRandomSpi
protected void engineNextBytes(byte[] bytes)
engineNextBytes
in class java.security.SecureRandomSpi
protected byte[] engineGenerateSeed(int i)
engineGenerateSeed
in class java.security.SecureRandomSpi