Package jadex.ipc.impl.security.random
Class SynchronizedSecureRandomWrapper
java.lang.Object
java.util.Random
java.security.SecureRandom
jadex.ipc.impl.security.random.SynchronizedSecureRandomWrapper
- All Implemented Interfaces:
Serializable
,RandomGenerator
- 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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateSeed
(int numBytes) DelegationDelegationboolean
Delegationvoid
nextBytes
(byte[] bytes) Delegationdouble
Delegationfloat
Delegationdouble
Delegationint
nextInt()
Delegationint
nextInt
(int bound) Delegationlong
nextLong()
Delegationvoid
setSeed
(byte[] seed) Delegationvoid
setSeed
(long seed) DelegationMethods inherited from class java.security.SecureRandom
getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toString
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs
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
-
Field Details
-
delegate
-
-
Constructor Details
-
SynchronizedSecureRandomWrapper
-
-
Method Details
-
generateSeed
public byte[] generateSeed(int numBytes) Delegation- Overrides:
generateSeed
in classSecureRandom
-
getAlgorithm
Delegation- Overrides:
getAlgorithm
in classSecureRandom
-
nextBytes
public void nextBytes(byte[] bytes) Delegation- Specified by:
nextBytes
in interfaceRandomGenerator
- Overrides:
nextBytes
in classSecureRandom
-
setSeed
public void setSeed(byte[] seed) Delegation- Overrides:
setSeed
in classSecureRandom
-
setSeed
public void setSeed(long seed) Delegation- Overrides:
setSeed
in classSecureRandom
-
nextBoolean
public boolean nextBoolean()Delegation- Specified by:
nextBoolean
in interfaceRandomGenerator
- Overrides:
nextBoolean
in classRandom
-
nextDouble
public double nextDouble()Delegation- Specified by:
nextDouble
in interfaceRandomGenerator
- Overrides:
nextDouble
in classRandom
-
nextFloat
public float nextFloat()Delegation- Specified by:
nextFloat
in interfaceRandomGenerator
- Overrides:
nextFloat
in classRandom
-
nextGaussian
public double nextGaussian()Delegation- Specified by:
nextGaussian
in interfaceRandomGenerator
- Overrides:
nextGaussian
in classRandom
-
nextInt
public int nextInt()Delegation- Specified by:
nextInt
in interfaceRandomGenerator
- Overrides:
nextInt
in classRandom
-
nextInt
public int nextInt(int bound) Delegation- Specified by:
nextInt
in interfaceRandomGenerator
- Overrides:
nextInt
in classRandom
-
nextLong
public long nextLong()Delegation- Specified by:
nextLong
in interfaceRandomGenerator
- Overrides:
nextLong
in classRandom
-