Class ReseedingSecureRandom

java.lang.Object
java.util.Random
java.security.SecureRandom
org.cryptomator.cryptolib.common.ReseedingSecureRandom
All Implemented Interfaces:
Serializable

public class ReseedingSecureRandom extends SecureRandom
Wraps a fast CSPRNG, which gets reseeded automatically after a certain amount of bytes has been generated.

Java 8 Example:

  SecureRandom csprng = ReseedingSecureRandom.create(SecureRandom.getInstanceStrong());
 
See Also: