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.
构造器和说明 |
---|
LinuxSecureRandom() |
限定符和类型 | 方法和说明 |
---|---|
protected byte[] |
engineGenerateSeed(int i) |
protected void |
engineNextBytes(byte[] bytes) |
protected void |
engineSetSeed(byte[] bytes) |
protected void engineSetSeed(byte[] bytes)
engineSetSeed
在类中 java.security.SecureRandomSpi
protected void engineNextBytes(byte[] bytes)
engineNextBytes
在类中 java.security.SecureRandomSpi
protected byte[] engineGenerateSeed(int i)
engineGenerateSeed
在类中 java.security.SecureRandomSpi