Class Xorshift128PlusRandom
- java.lang.Object
-
- java.util.Random
-
- com.github.f4b6a3.uuid.util.random.Xorshift128PlusRandom
-
- All Implemented Interfaces:
Serializable
@Deprecated public final class Xorshift128PlusRandom extends Random
Deprecated.this class will be removed in the next major version. https://en.wikipedia.org/wiki/Xorshift[Deprecated] A subclass ofRandomthat implements the Xorshift 128 Plus random number generator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Xorshift128PlusRandom()Deprecated.Xorshift128PlusRandom(int salt)Deprecated.Constructor that receives an integer as 'salt'.Xorshift128PlusRandom(long[] seed)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected intnext(int bits)Deprecated.intnextInt()Deprecated.longnextLong()Deprecated.
-
-
-
Constructor Detail
-
Xorshift128PlusRandom
public Xorshift128PlusRandom()
Deprecated.
-
Xorshift128PlusRandom
public Xorshift128PlusRandom(int salt)
Deprecated.Constructor that receives an integer as 'salt'. This value is combined with the current milliseconds and the object hash code to generate two seeds.- Parameters:
salt- a number used to generate two seeds.
-
Xorshift128PlusRandom
public Xorshift128PlusRandom(long[] seed)
Deprecated.
-
-