Package convex.core.crypto
Class InsecureRandom
java.lang.Object
java.util.Random
java.security.SecureRandom
convex.core.crypto.InsecureRandom
- All Implemented Interfaces:
Serializable
,RandomGenerator
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator
-
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
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Constructor Details
-
InsecureRandom
public InsecureRandom(long seed) Create an InsecureRandom instance with a specified seed- Parameters:
seed
- Seed value to use
-