Package org.redisson.misc
Class RandomXoshiro256PlusPlus
java.lang.Object
java.util.Random
org.redisson.misc.RandomXoshiro256PlusPlus
- All Implemented Interfaces:
Serializable
Implementation of Random based on the xoshiro256** RNG. No-dependencies
Java port of the original C code,
which is public domain. This Java port is similarly dedicated to the public
domain.
This implementation is thread-safe.
- Author:
- David Blackman and Sebastiano Vigna <vigna@acm.org> (original C code), Una Thompson <una@unascribed.com> (Java port), Nikita Koksharov
- See Also:
-
Method Summary
-
Method Details
-
create
-
setSeed
public void setSeed(long seed) -
next
protected int next(int bits) -
nextInt
public int nextInt() -
nextInt
public int nextInt(int bound) -
nextLong
public long nextLong(long bound) -
nextDouble
public double nextDouble()- Overrides:
nextDoublein classRandom
-
nextFloat
public float nextFloat() -
nextBoolean
public boolean nextBoolean()- Overrides:
nextBooleanin classRandom
-
nextBytes
public void nextBytes(byte[] buf) -
nextBytes
public void nextBytes(byte[] buf, int ofs, int len) -
nextLong
public long nextLong()
-