Package convex.core.crypto
Class InsecureRandom
java.lang.Object
java.util.Random
java.security.SecureRandom
convex.core.crypto.InsecureRandom
- All Implemented Interfaces:
Serializable
A SecureRandom instance that returns deterministic values given an initial seed.
SECURITY: Neither secure nor truly random, but useful for testing. Please don't use for protecting real assets....
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInsecureRandom(long seed)
Create an InsecureRandom instance with a specified seed -
Method Summary
Methods inherited from class java.security.SecureRandom
generateSeed, getAlgorithm, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, nextBytes, reseed, reseed, setSeed, setSeed, toString
-
Constructor Details
-
InsecureRandom
public InsecureRandom(long seed)Create an InsecureRandom instance with a specified seed- Parameters:
seed
- Seed value to use
-