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) DelegationDelegationbooleanDelegationvoidnextBytes(byte[] bytes) DelegationdoubleDelegationfloatDelegationdoubleDelegationintnextInt()DelegationintnextInt(int bound) DelegationlongnextLong()DelegationvoidsetSeed(byte[] seed) DelegationvoidsetSeed(long seed) DelegationMethods inherited from class java.security.SecureRandom
getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toStringMethods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
generateSeedin classSecureRandom
-
getAlgorithm
Delegation- Overrides:
getAlgorithmin classSecureRandom
-
nextBytes
public void nextBytes(byte[] bytes) Delegation- Specified by:
nextBytesin interfaceRandomGenerator- Overrides:
nextBytesin classSecureRandom
-
setSeed
public void setSeed(byte[] seed) Delegation- Overrides:
setSeedin classSecureRandom
-
setSeed
public void setSeed(long seed) Delegation- Overrides:
setSeedin classSecureRandom
-
nextBoolean
public boolean nextBoolean()Delegation- Specified by:
nextBooleanin interfaceRandomGenerator- Overrides:
nextBooleanin classRandom
-
nextDouble
public double nextDouble()Delegation- Specified by:
nextDoublein interfaceRandomGenerator- Overrides:
nextDoublein classRandom
-
nextFloat
public float nextFloat()Delegation- Specified by:
nextFloatin interfaceRandomGenerator- Overrides:
nextFloatin classRandom
-
nextGaussian
public double nextGaussian()Delegation- Specified by:
nextGaussianin interfaceRandomGenerator- Overrides:
nextGaussianin classRandom
-
nextInt
public int nextInt()Delegation- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextInt
public int nextInt(int bound) Delegation- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextLong
public long nextLong()Delegation- Specified by:
nextLongin interfaceRandomGenerator- Overrides:
nextLongin classRandom
-