Skip to content

Commit

Permalink
REF: Regenerate test date with new seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Sep 17, 2024
1 parent d552e3c commit a65cdbe
Show file tree
Hide file tree
Showing 17 changed files with 12,085 additions and 12,053 deletions.
20 changes: 8 additions & 12 deletions randomgen/src/xoroshiro128/xoroshiro128-test-data-gen.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/*
* Generate testing csv files
*
* cl xoroshiro128-test-data-gen.c xoroshiro128plus.orig.c /
* ../splitmix64/splitmix64.c /Ox
* cl xoroshiro128-test-data-gen.c xoroshiro128plus.orig.c /Ox
* xoroshiro128-test-data-gen.exe *
*
* gcc xoroshiro128-test-data-gen.c xoroshiro128plus.orig.c /
* ../splitmix64/splitmix64.c -o xoroshiro128-test-data-gen
* -o xoroshiro128-test-data-gen
* ./xoroshiro128-test-data-gen
*
*/

#include "../splitmix64/splitmix64.h"
#include "xoroshiro128plus.orig.h"
#include <inttypes.h>
#include <stdio.h>
Expand All @@ -24,10 +22,9 @@ int main()
uint64_t state, seed = 0xDEADBEAF;
state = seed;
int i;
for (i = 0; i < 2; i++)
{
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0xDEADBEAF).generate_state(2, dtype=np.uint64) */
s[0] = 5778446405158232650;
s[1] = 4639759349701729399;
uint64_t store[N];
for (i = 0; i < N; i++)
{
Expand All @@ -53,10 +50,9 @@ int main()
fclose(fp);

seed = state = 0;
for (i = 0; i < 2; i++)
{
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0).generate_state(2, dtype=np.uint64) */
s[0] = 15793235383387715774;
s[1] = 12390638538380655177;
for (i = 0; i < N; i++)
{
store[i] = next();
Expand Down
19 changes: 8 additions & 11 deletions randomgen/src/xoroshiro128/xoroshiro128plusplus-test-data-gen.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/*
* Generate testing csv files
*
* cl xoroshiro128plusplus-test-data-gen.c xoroshiro128plusplus.orig.c `
* ../splitmix64/splitmix64.c /Ox
* cl xoroshiro128plusplus-test-data-gen.c xoroshiro128plusplus.orig.c /Ox
* xoroshiro128plusplus-test-data-gen.exe
*
* gcc xoroshiro128plusplus-test-data-gen.c xoroshiro128plusplus.orig.c /
* ../splitmix64/splitmix64.c -o xoroshiro128plusplus-test-data-gen
* -o xoroshiro128plusplus-test-data-gen
* ./xoroshiro128plusplus-test-data-gen
*
*/

#include "../splitmix64/splitmix64.h"
#include "xoroshiro128plus.orig.h"
#include <inttypes.h>
#include <stdio.h>
Expand All @@ -23,10 +21,9 @@ int main()
uint64_t state, seed = 0xDEADBEAF;
state = seed;
int i;
for (i = 0; i < 2; i++)
{
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0xDEADBEAF).generate_state(2, dtype=np.uint64) */
s[0] = 5778446405158232650;
s[1] = 4639759349701729399;
uint64_t store[N];
for (i = 0; i < N; i++)
{
Expand All @@ -53,9 +50,9 @@ int main()

seed = state = 0;
for (i = 0; i < 2; i++)
{
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0).generate_state(2, dtype=np.uint64) */
s[0] = 15793235383387715774;
s[1] = 12390638538380655177;
for (i = 0; i < N; i++)
{
store[i] = next();
Expand Down
47 changes: 37 additions & 10 deletions randomgen/src/xorshift1024/xorshift1024-test-data-gen.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/*
* Generate testing csv files
*
* cl xorshift1024-test-data-gen.c xorshift1024.orig.c /
* ../splitmix64/splitmix64.c /Ox
* cl xorshift1024-test-data-gen.c xorshift1024.orig.c /Ox
* xorshift1024-test-data-gen.exe *
*
* gcc xorshift1024-test-data-gen.c xorshift1024.orig.c /
* ../splitmix64/splitmix64.c -o xorshift1024-test-data-gen
* -o xorshift1024-test-data-gen
* ./xorshift1024-test-data-gen
*
*/

#include "../splitmix64/splitmix64.h"
#include "xorshift1024.orig.h"
#include <inttypes.h>
#include <stdio.h>
Expand All @@ -23,9 +21,23 @@ int main() {
uint64_t state, seed = 0xDEADBEAF;
state = seed;
int i;
for (i = 0; i < 16; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0xDEADBEAF).generate_state(16, dtype=np.uint64) */
s[0] = 5778446405158232650;
s[1] = 4639759349701729399;
s[2] = 13222832537653397986;
s[3] = 2330059127936092250;
s[4] = 6380887635277085283;
s[5] = 2943025801430425506;
s[6] = 16158800551411432655;
s[7] = 4467384082323269519;
s[8] = 4163226376263453348;
s[9] = 16628552531038748367;
s[10] = 17616013123752890245;
s[11] = 17578598327112781894;
s[12] = 438609640508191089;
s[13] = 13797137212871506356;
s[14] = 17329687526801996224;
s[15] = 4335059551211669809;
p = 0;
uint64_t store[N];
for (i = 0; i < N; i++) {
Expand All @@ -48,9 +60,24 @@ int main() {
fclose(fp);

seed = state = 0;
for (i = 0; i < 16; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0).generate_state(16, dtype=np.uint64) */
s[0] = 15793235383387715774;
s[1] = 12390638538380655177;
s[2] = 2361836109651742017;
s[3] = 3188717715514472916;
s[4] = 648184599915300350;
s[5] = 6643206648905449565;
s[6] = 2726452650616012281;
s[7] = 7074207863174652740;
s[8] = 2839732472023434771;
s[9] = 1324431917831166204;
s[10] = 12426324003838119764;
s[11] = 13754663673472703591;
s[12] = 11773959661440143617;
s[13] = 16838540509216247236;
s[14] = 15387639255561118537;
s[15] = 18285287097764728708;

p = 0;
for (i = 0; i < N; i++) {
store[i] = next();
Expand Down
22 changes: 12 additions & 10 deletions randomgen/src/xoshiro256/xoshiro256-test-data-gen.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/*
* Generate testing csv files
*
* cl xoshiro256-test-data-gen.c xoshiro256.orig.c /
* ../splitmix64/splitmix64.c /Ox
* cl xoshiro256-test-data-gen.c xoshiro256.orig.c /Ox
* xoshiro256-test-data-gen.exe *
*
* gcc xoshiro256-test-data-gen.c xoshiro256.orig.c /
* ../splitmix64/splitmix64.c -o xoshiro256-test-data-gen
* -o xoshiro256-test-data-gen
* ./xoshiro256-test-data-gen
*
*/

#include "../splitmix64/splitmix64.h"
#include "xoshiro256.orig.h"
#include <inttypes.h>
#include <stdio.h>
Expand All @@ -23,9 +21,11 @@ int main() {
uint64_t state, seed = 0xDEADBEAF;
state = seed;
int i;
for (i = 0; i < 4; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0xDEADBEAF).generate_state(4, dtype=np.uint64) */
s[0] = 5778446405158232650;
s[1] = 4639759349701729399;
s[2] = 13222832537653397986;
s[3] = 2330059127936092250;
uint64_t store[N];
for (i = 0; i < N; i++) {
store[i] = next();
Expand All @@ -47,9 +47,11 @@ int main() {
fclose(fp);

seed = state = 0;
for (i = 0; i < 4; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0).generate_state(4, dtype=np.uint64) */
s[0] = 15793235383387715774;
s[1] = 12390638538380655177;
s[2] = 2361836109651742017;
s[3] = 3188717715514472916;
for (i = 0; i < N; i++) {
store[i] = next();
}
Expand Down
30 changes: 20 additions & 10 deletions randomgen/src/xoshiro512/xoshiro512-test-data-gen.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/*
* Generate testing csv files
*
* cl xoshiro512-test-data-gen.c xoshiro512.orig.c /
* ../splitmix64/splitmix64.c /Ox
* cl xoshiro512-test-data-gen.c xoshiro512.orig.c /Ox
* xoshiro512-test-data-gen.exe *
*
* gcc xoshiro512-test-data-gen.c xoshiro512.orig.c /
* ../splitmix64/splitmix64.c -o xoshiro512-test-data-gen
* -o xoshiro512-test-data-gen
* ./xoshiro512-test-data-gen
*
*/

#include "../splitmix64/splitmix64.h"
#include "xoshiro512.orig.h"
#include <inttypes.h>
#include <stdio.h>
Expand All @@ -23,9 +21,15 @@ int main() {
uint64_t state, seed = 0xDEADBEAF;
state = seed;
int i;
for (i = 0; i < 8; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0xDEADBEAF).generate_state(8, dtype=np.uint64) */
s[0] = 5778446405158232650;
s[1] = 4639759349701729399;
s[2] = 13222832537653397986;
s[3] = 2330059127936092250;
s[4] = 6380887635277085283;
s[5] = 2943025801430425506;
s[6] = 16158800551411432655;
s[7] = 4467384082323269519;
uint64_t store[N];
for (i = 0; i < N; i++) {
store[i] = next();
Expand All @@ -47,9 +51,15 @@ int main() {
fclose(fp);

seed = state = 0;
for (i = 0; i < 8; i++) {
s[i] = splitmix64_next(&state);
}
/* SeedSequence(0).generate_state(8, dtype=np.uint64) */
s[0] = 15793235383387715774;
s[1] = 12390638538380655177;
s[2] = 2361836109651742017;
s[3] = 3188717715514472916;
s[4] = 648184599915300350;
s[5] = 6643206648905449565;
s[6] = 2726452650616012281;
s[7] = 7074207863174652740;
for (i = 0; i < N; i++) {
store[i] = next();
}
Expand Down
Loading

0 comments on commit a65cdbe

Please sign in to comment.