RNG-169: Expand primitive input seeds using a SplitMix64
authorAlex Herbert <aherbert@apache.org>
Thu, 17 Mar 2022 09:26:14 +0000 (09:26 +0000)
committerAlex Herbert <aherbert@apache.org>
Thu, 17 Mar 2022 19:22:56 +0000 (19:22 +0000)
commitef9722b5dcce2e23c250deadbed8589893d82845
tree0fb1416f0239992d807f214dce29238b8aaa8ef8
parentd53f3da3533a38dd3cf6b6b300cc58e17a12070a
RNG-169: Expand primitive input seeds using a SplitMix64

This changes behaviour so that

if int == long:
  int -> array1
  long -> array2
  array1 == array2

int -> array[0] == int -> long
commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java
commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Int2Long.java
commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Long2IntArray.java
commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Long2LongArray.java
commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/NativeSeedType.java
commons-rng-simple/src/test/java/org/apache/commons/rng/simple/internal/ConversionsTest.java
commons-rng-simple/src/test/java/org/apache/commons/rng/simple/internal/NativeSeedTypeTest.java