-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprng-dump.cpp
619 lines (549 loc) · 24 KB
/
prng-dump.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
// SPDX-FileCopyrightText: Steven Ward
// SPDX-License-Identifier: OSL-3.0
/*
gpp -Iinclude $OPTIMIZE_OPTIONS prng-dump.cpp -o prng-dump && d ./prng-dump
clear ; ./prng-dump -i | column --table --table-right 2,4,5
"How to Test with PractRand"
https://www.pcg-random.org/posts/how-to-test-with-practrand.html
*/
#include "prng.hpp"
#include "seed_seq.hpp"
#include "seeds.hpp"
#include <cassert>
#include <climits>
#include <cstdint>
#include <random>
#include <string>
#include <unistd.h>
#include <utility>
#include <fmt/format.h>
#define nl (void)putchar('\n')
const char* program_author = "Steven Ward";
const char* program_version = "2025-04-08";
const char* program_license = "OSL-3.0";
// Globals
constexpr unsigned long long bytes_per_gigabyte = 1'000ULL * 1'000ULL * 1'000ULL;
constexpr unsigned long long bytes_per_gibibyte = 1'024ULL * 1'024ULL * 1'024ULL;
constexpr uint32_t seed_pattern_32{0xAAAAAAAA};
const std::string default_prng_name = "default_random_engine";
bool verbose = false;
unsigned long long limit_bytes = 0;
bool use_default_ctor = false;
bool use_pattern_seed = false;
bool use_random_seed = false;
bool use_zero_seed = false;
void
print_all_prng_info()
{
for (const auto& [prng_name, info] : prng_name_to_info)
{
fmt::println("{}\t{}\t{}\t{}\t{}",
prng_name,
info.result_type_size_bits,
info.result_min,
info.result_max,
info.prng_size_bytes
);
}
}
template <std::uniform_random_bit_generator URBG>
void
prng_dump(URBG&& gen)
{
using result_type = typename URBG::result_type;
// /proc/sys/fs/pipe-max-size = 1048576
// fcntl(STDOUT_FILENO, F_GETPIPE_SZ) = 65536
// BUFSIZ = 8192
// PractRand uses a buffer of size 32768 bytes for reading from stdin.
constexpr size_t buf_size_bytes = 32768;
constexpr size_t buf_num_elems = buf_size_bytes / sizeof(result_type);
static_assert(buf_size_bytes % sizeof(result_type) == 0);
result_type buf[buf_num_elems] = {0};
if (limit_bytes == 0)
{
while (true)
{
for (size_t i = 0; i < buf_num_elems; ++i) { buf[i] = gen(); }
(void)::write(STDOUT_FILENO, &buf[0], sizeof(buf));
}
}
else // limit_bytes > 0
{
const size_t num_writes = limit_bytes / buf_size_bytes;
assert(limit_bytes % buf_size_bytes == 0);
for (size_t j = 0; j < num_writes; ++j)
{
for (size_t i = 0; i < buf_num_elems; ++i) { buf[i] = gen(); }
(void)::write(STDOUT_FILENO, &buf[0], sizeof(buf));
}
}
}
/// Print the version information.
void
print_version()
{
fmt::println("{} {}", program_invocation_short_name, program_version);
fmt::println("License: {}", program_license);
fmt::println("Written by {}", program_author);
}
/// Print the suggestion message.
void
print_suggestion()
{
fmt::println(stderr, "Try '{} -h' for more information.",
program_invocation_short_name);
}
/// Print the message if verbose is enabled.
/**
\param s the string to print
*/
void
print_verbose(const std::string& s)
{
if (verbose && !s.empty())
{
(void)std::fputs(s.c_str(), stderr);
(void)std::fputc('\n', stderr);
}
}
/// Print the warning message.
/**
\param s the string to print
*/
void
print_warning(const std::string& s)
{
if (!s.empty())
{
(void)std::fputs("Warning: ", stderr);
(void)std::fputs(s.c_str(), stderr);
(void)std::fputc('\n', stderr);
}
}
/// Print the error message.
/**
\param s the string to print
*/
[[noreturn]] void
print_error(const std::string& s)
{
if (!s.empty())
{
(void)std::fputs("Error: ", stderr);
(void)std::fputs(s.c_str(), stderr);
(void)std::fputc('\n', stderr);
}
print_suggestion();
std::exit(EXIT_FAILURE);
}
/// Print the help message.
void
print_usage()
{
fmt::println("Usage: {} [OPTION]... PRNG", program_invocation_short_name);
fmt::println("Dump random output to stdout.");
fmt::println("The default PRNG is {}", default_prng_name);
nl;
fmt::println("OPTIONS");
nl;
fmt::println("-V");
fmt::println(" Print the version information, then exit.");
nl;
fmt::println("-h");
fmt::println(" Print this message, then exit.");
nl;
fmt::println("-v");
fmt::println(" Print diagnostics.");
nl;
fmt::println("-i");
fmt::println(" Print information about the available PRNGs, then exit.");
nl;
fmt::println("-l MAX");
fmt::println(" Limit the output to no more than MAX gibibytes.");
nl;
fmt::println("-s SEED_TYPE");
fmt::println(" Specify the type of seed to be used.");
fmt::println(" SEED_TYPE must be one of the following values:");
fmt::println(R"( "d", "def", "default", (The PRNG is default constructed.))");
fmt::println(R"( "p", "pat", "pattern", (The PRNG is seeded with bytes of value 0x{:0{}X}.))", seed_pattern_32, sizeof(seed_pattern_32) * 2);
fmt::println(R"( "r", "rand", "random", (The PRNG is seeded with bytes of random values.))");
fmt::println(R"( "z", "zero", (The PRNG is seeded with bytes of value 0x00.))");
nl;
}
/// Process the command line options.
/**
\param argc the arg count
\param argv the arg vector
*/
void
process_options(int argc, char* argv[])
{
using namespace std::literals;
const char* short_options = "+Vhvil:s:";
int c;
while ((c = getopt(argc, argv, short_options)) != -1)
{
switch (c)
{
case 'h':
print_usage();
std::exit(EXIT_SUCCESS);
break;
case 'V':
print_version();
std::exit(EXIT_SUCCESS);
break;
case 'v':
verbose = true;
break;
case 'i':
print_all_prng_info();
std::exit(EXIT_SUCCESS);
break;
case 'l':
try
{
limit_bytes = std::stoull(optarg);
}
catch (const std::invalid_argument& ex)
{
print_error(fmt::format("invalid_argument: {}", ex.what()));
}
catch (const std::out_of_range& ex)
{
print_error(fmt::format("out_of_range: {}", ex.what()));
}
//if (__builtin_umulll_overflow(limit_bytes, bytes_per_gibibyte, &limit_bytes))
if (limit_bytes > std::numeric_limits<decltype(limit_bytes)>::max() / bytes_per_gibibyte)
{
print_error(fmt::format("Arithmetic overflow: {} * {}", optarg, bytes_per_gibibyte));
}
limit_bytes *= bytes_per_gibibyte;
break;
case 's':
if ((optarg == "d"s) || (optarg == "def"s) || (optarg == "default"s))
{
use_default_ctor = true;
use_pattern_seed = false;
use_random_seed = false;
use_zero_seed = false;
}
else if ((optarg == "p"s) || (optarg == "pat"s) || (optarg == "pattern"s))
{
use_default_ctor = false;
use_pattern_seed = true;
use_random_seed = false;
use_zero_seed = false;
}
else if ((optarg == "r"s) || (optarg == "rand"s) || (optarg == "random"s))
{
use_default_ctor = false;
use_pattern_seed = false;
use_random_seed = true;
use_zero_seed = false;
}
else if ((optarg == "z"s) || (optarg == "zero"s))
{
use_default_ctor = false;
use_pattern_seed = false;
use_random_seed = false;
use_zero_seed = true;
}
else
{
print_error(fmt::format("Invalid option value: {:?}", optarg));
}
break;
default:
std::exit(EXIT_FAILURE);
}
}
}
/*
std::chrono::time_point<std::chrono::steady_clock> start_time;
void print_elapsed_time()
{
const auto end_time = std::chrono::steady_clock::now();
const auto elapsed_time = end_time - start_time;
const auto elapsed_time_s = std::chrono::duration<double>(elapsed_time).count();
print_verbose(fmt::format("# time elapsed = {:.3f} s", elapsed_time_s));
}
*/
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
process_options(argc, argv);
std::string prng_name = default_prng_name;
for (int i = optind; i < argc; ++i)
{
prng_name = argv[i];
}
print_verbose(fmt::format("# limit_bytes={}", limit_bytes));
print_verbose(fmt::format("# prng_name={}", prng_name));
if (!prng_name_to_info.contains(prng_name))
{
print_error(fmt::format("Unknown PRNG: {}", prng_name));
}
/*
start_time = std::chrono::steady_clock::now();
assert(atexit(print_elapsed_time) == 0);
*/
/*
{
const time_t now_time_t = time(nullptr);
const tm now_time_tm = *localtime(&now_time_t);
print_verbose(fmt::format("# begin {:%FT%T%z}", now_time_tm));
}
*/
#define CONDITIONAL_DUMP_STD(NAME) \
if (prng_name == #NAME) { \
fill_seed_seq<seed_pattern_32> seeder_pattern; \
fill_seed_seq<0> seeder_zero; \
if (use_default_ctor) prng_dump(NAME{}); \
else if (use_pattern_seed) prng_dump(NAME{seeder_pattern}); \
else if (use_random_seed) prng_dump(random_device_seeded<NAME>()); \
else if (use_zero_seed) prng_dump(NAME{seeder_zero}); \
else std::unreachable(); \
return 0; \
}
#define CONDITIONAL_DUMP_MINE(NAME) \
if (prng_name == #NAME) { \
if (use_default_ctor) prng_dump(NAME{}); \
else if (use_pattern_seed) prng_dump(NAME{get_seed_bytes_pattern<NAME>()}); \
else if (use_random_seed) prng_dump(NAME{}); \
else if (use_zero_seed) prng_dump(NAME{get_seed_bytes_zero<NAME>()}); \
else std::unreachable(); \
return 0; \
}
// <random>
CONDITIONAL_DUMP_STD(std::default_random_engine)
CONDITIONAL_DUMP_STD(std::knuth_b )
CONDITIONAL_DUMP_STD(std::minstd_rand )
CONDITIONAL_DUMP_STD(std::minstd_rand0 )
CONDITIONAL_DUMP_STD(std::mt19937 )
CONDITIONAL_DUMP_STD(std::mt19937_64 )
CONDITIONAL_DUMP_STD(std::ranlux24 )
CONDITIONAL_DUMP_STD(std::ranlux24_base )
CONDITIONAL_DUMP_STD(std::ranlux48 )
CONDITIONAL_DUMP_STD(std::ranlux48_base )
// mine
#if defined(__AES__)
CONDITIONAL_DUMP_MINE(aes_ctr_128_k1_r2)
CONDITIONAL_DUMP_MINE(aes_ctr_128_k1_r3)
CONDITIONAL_DUMP_MINE(aes_ctr_128_k2_r1)
CONDITIONAL_DUMP_MINE(aes_ctr_128_k3_r1)
CONDITIONAL_DUMP_MINE(aes_half_state_64_k1_r2)
CONDITIONAL_DUMP_MINE(aes_half_state_64_k1_r3)
CONDITIONAL_DUMP_MINE(aes_half_state_64_k2_r1)
CONDITIONAL_DUMP_MINE(aes_half_state_64_k3_r1)
CONDITIONAL_DUMP_MINE(aes_half_state_128_k1_r2)
CONDITIONAL_DUMP_MINE(aes_half_state_128_k1_r3)
CONDITIONAL_DUMP_MINE(aes_half_state_128_k2_r1)
CONDITIONAL_DUMP_MINE(aes_half_state_128_k3_r1)
CONDITIONAL_DUMP_MINE(aes_whole_state_128_k1_r2)
CONDITIONAL_DUMP_MINE(aes_whole_state_128_k1_r3)
CONDITIONAL_DUMP_MINE(aes_whole_state_128_k2_r1)
CONDITIONAL_DUMP_MINE(aes_whole_state_128_k3_r1)
#endif
CONDITIONAL_DUMP_MINE(bell )
CONDITIONAL_DUMP_MINE(bright )
#if defined(__PCLMUL__)
CONDITIONAL_DUMP_MINE(clmulrand )
#endif
CONDITIONAL_DUMP_MINE(degski32 )
CONDITIONAL_DUMP_MINE(degski64 )
CONDITIONAL_DUMP_MINE(dirk )
CONDITIONAL_DUMP_MINE(ettinger_mixer )
CONDITIONAL_DUMP_MINE(gjrand )
CONDITIONAL_DUMP_MINE(jsf32_2 )
CONDITIONAL_DUMP_MINE(jsf32_3 )
CONDITIONAL_DUMP_MINE(jsf64 )
CONDITIONAL_DUMP_MINE(klimov_shamir_32 )
CONDITIONAL_DUMP_MINE(lcg32 )
CONDITIONAL_DUMP_MINE(lcg64 )
CONDITIONAL_DUMP_MINE(lea64 )
CONDITIONAL_DUMP_MINE(lehmer64 )
CONDITIONAL_DUMP_MINE(linnorm )
CONDITIONAL_DUMP_MINE(mcg128 )
CONDITIONAL_DUMP_MINE(mizuchi )
CONDITIONAL_DUMP_MINE(moremur )
CONDITIONAL_DUMP_MINE(mover_64 )
CONDITIONAL_DUMP_MINE(mover_counter_64 )
CONDITIONAL_DUMP_MINE(MRG32k3a )
CONDITIONAL_DUMP_MINE(msws32 )
CONDITIONAL_DUMP_MINE(msws64 )
CONDITIONAL_DUMP_MINE(mumx_mumx_rrxx_1 )
CONDITIONAL_DUMP_MINE(mumx_mumx_x1 )
CONDITIONAL_DUMP_MINE(mumx_mumx_x2 )
CONDITIONAL_DUMP_MINE(murmurhash3 )
CONDITIONAL_DUMP_MINE(murmurhash3_32 )
CONDITIONAL_DUMP_MINE(mx3 )
CONDITIONAL_DUMP_MINE(nasam )
CONDITIONAL_DUMP_MINE(orbit )
CONDITIONAL_DUMP_MINE(pcg32 )
CONDITIONAL_DUMP_MINE(pcg32_fast )
CONDITIONAL_DUMP_MINE(pcg64 )
CONDITIONAL_DUMP_MINE(pcg64dxsm )
CONDITIONAL_DUMP_MINE(pelican )
CONDITIONAL_DUMP_MINE(pulley )
CONDITIONAL_DUMP_MINE(quixotic )
CONDITIONAL_DUMP_MINE(romu_duo )
CONDITIONAL_DUMP_MINE(romu_duo_jr )
CONDITIONAL_DUMP_MINE(romu_quad )
CONDITIONAL_DUMP_MINE(romu_quad32 )
CONDITIONAL_DUMP_MINE(romu_trio )
CONDITIONAL_DUMP_MINE(romu_trio32 )
CONDITIONAL_DUMP_MINE(rrma2xsm2xs )
CONDITIONAL_DUMP_MINE(rrmxmx )
CONDITIONAL_DUMP_MINE(rrxmrrxmsx_0 )
CONDITIONAL_DUMP_MINE(sea_slater_64 )
CONDITIONAL_DUMP_MINE(seiran )
CONDITIONAL_DUMP_MINE(sfc32 )
CONDITIONAL_DUMP_MINE(sfc64 )
#if defined(__SHA__)
CONDITIONAL_DUMP_MINE(sha1_ctr_128 )
CONDITIONAL_DUMP_MINE(sha256_ctr_128 )
#endif
CONDITIONAL_DUMP_MINE(shioi )
CONDITIONAL_DUMP_MINE(splitmix32 )
CONDITIONAL_DUMP_MINE(splitmix64 )
CONDITIONAL_DUMP_MINE(splitxix33 )
CONDITIONAL_DUMP_MINE(squares32 )
CONDITIONAL_DUMP_MINE(squares64 )
CONDITIONAL_DUMP_MINE(stc64 )
CONDITIONAL_DUMP_MINE(tangle )
CONDITIONAL_DUMP_MINE(thrust_alt )
CONDITIONAL_DUMP_MINE(topping )
CONDITIONAL_DUMP_MINE(ttwanghash64 )
CONDITIONAL_DUMP_MINE(wyrand )
CONDITIONAL_DUMP_MINE(xoroshiro64starstar )
CONDITIONAL_DUMP_MINE(xoroshiro128plusplus )
CONDITIONAL_DUMP_MINE(xoroshiro128starstar )
CONDITIONAL_DUMP_MINE(xoroshiro1024plusplus )
CONDITIONAL_DUMP_MINE(xoroshiro1024starstar )
CONDITIONAL_DUMP_MINE(xoshiro128plusplus )
CONDITIONAL_DUMP_MINE(xoshiro128starstar )
CONDITIONAL_DUMP_MINE(xoshiro256plusplus )
CONDITIONAL_DUMP_MINE(xoshiro256starstar )
CONDITIONAL_DUMP_MINE(xoshiro512plusplus )
CONDITIONAL_DUMP_MINE(xoshiro512starstar )
CONDITIONAL_DUMP_MINE(xsm32 )
CONDITIONAL_DUMP_MINE(xsm64 )
/*
{
const time_t now_time_t = time(nullptr);
const tm now_time_tm = *localtime(&now_time_t);
print_verbose(fmt::format("# end {:%FT%T%z}", now_time_tm));
}
*/
return 0;
}
/*
Output:
MRG32k3a 64 0 18446744073709551615 8
aes_ctr_128_k1_r2 128 0 340282366920938463463374607431768211455 48
aes_ctr_128_k1_r3 128 0 340282366920938463463374607431768211455 48
aes_ctr_128_k2_r1 128 0 340282366920938463463374607431768211455 64
aes_ctr_128_k3_r1 128 0 340282366920938463463374607431768211455 80
aes_half_state_128_k1_r2 128 0 340282366920938463463374607431768211455 48
aes_half_state_128_k1_r3 128 0 340282366920938463463374607431768211455 48
aes_half_state_128_k2_r1 128 0 340282366920938463463374607431768211455 64
aes_half_state_128_k3_r1 128 0 340282366920938463463374607431768211455 80
aes_half_state_64_k1_r2 64 0 18446744073709551615 32
aes_half_state_64_k1_r3 64 0 18446744073709551615 32
aes_half_state_64_k2_r1 64 0 18446744073709551615 48
aes_half_state_64_k3_r1 64 0 18446744073709551615 64
aes_whole_state_128_k1_r2 128 0 340282366920938463463374607431768211455 32
aes_whole_state_128_k1_r3 128 0 340282366920938463463374607431768211455 32
aes_whole_state_128_k2_r1 128 0 340282366920938463463374607431768211455 48
aes_whole_state_128_k3_r1 128 0 340282366920938463463374607431768211455 64
bell 64 0 18446744073709551615 16
bright 64 0 18446744073709551615 8
clmulrand 64 0 18446744073709551615 16
degski32 32 0 4294967295 4
degski64 64 0 18446744073709551615 8
dirk 64 0 18446744073709551615 8
ettinger_mixer 64 0 18446744073709551615 8
gjrand 64 0 18446744073709551615 32
jsf32_2 32 0 4294967295 16
jsf32_3 32 0 4294967295 16
jsf64 64 0 18446744073709551615 32
klimov_shamir_32 32 0 4294967295 8
lcg32 32 0 4294967295 16
lcg64 64 0 18446744073709551615 16
lea64 64 0 18446744073709551615 8
lehmer64 64 0 18446744073709551615 16
linnorm 64 0 18446744073709551615 8
mcg128 64 0 18446744073709551615 16
mizuchi 64 0 18446744073709551615 8
moremur 64 0 18446744073709551615 8
mover_64 64 0 18446744073709551615 16
mover_counter_64 64 0 18446744073709551615 16
msws32 32 0 4294967295 16
msws64 64 0 18446744073709551615 32
mumx_mumx_rrxx_1 64 0 18446744073709551615 8
mumx_mumx_x1 64 0 18446744073709551615 8
mumx_mumx_x2 64 0 18446744073709551615 8
murmurhash3 64 0 18446744073709551615 8
murmurhash3_32 32 0 4294967295 4
mx3 64 0 18446744073709551615 8
nasam 64 0 18446744073709551615 8
orbit 64 0 18446744073709551615 16
pcg32 32 0 4294967295 8
pcg32_fast 32 0 4294967295 8
pcg64 64 0 18446744073709551615 16
pcg64dxsm 64 0 18446744073709551615 16
pelican 64 0 18446744073709551615 8
pulley 64 0 18446744073709551615 8
quixotic 64 0 18446744073709551615 8
romu_duo 64 0 18446744073709551615 16
romu_duo_jr 64 0 18446744073709551615 16
romu_quad 64 0 18446744073709551615 32
romu_quad32 32 0 4294967295 16
romu_trio 64 0 18446744073709551615 24
romu_trio32 32 0 4294967295 12
rrma2xsm2xs 64 0 18446744073709551615 8
rrmxmx 64 0 18446744073709551615 8
rrxmrrxmsx_0 64 0 18446744073709551615 8
sea_slater_64 64 0 18446744073709551615 16
seiran 64 0 18446744073709551615 16
sfc32 32 0 4294967295 16
sfc64 64 0 18446744073709551615 32
sha1_ctr_128 128 0 340282366920938463463374607431768211455 32
sha256_ctr_128 128 0 340282366920938463463374607431768211455 32
shioi 64 0 18446744073709551615 16
splitmix32 32 0 4294967295 8
splitmix64 64 0 18446744073709551615 8
splitxix33 64 0 18446744073709551615 8
squares32 32 0 4294967295 8
squares64 64 0 18446744073709551615 8
stc64 64 0 18446744073709551615 32
std::default_random_engine 64 1 2147483646 8
std::knuth_b 64 1 2147483646 2064
std::minstd_rand 64 1 2147483646 8
std::minstd_rand0 64 1 2147483646 8
std::mt19937 64 0 4294967295 5000
std::mt19937_64 64 0 18446744073709551615 2504
std::ranlux24 64 0 16777215 216
std::ranlux24_base 64 0 16777215 208
std::ranlux48 64 0 281474976710655 120
std::ranlux48_base 64 0 281474976710655 112
tangle 64 0 18446744073709551615 16
thrust_alt 64 0 18446744073709551615 8
topping 64 0 18446744073709551615 8
ttwanghash64 64 0 18446744073709551615 8
wyrand 64 0 18446744073709551615 8
xoroshiro1024plusplus 64 0 18446744073709551615 128
xoroshiro1024starstar 64 0 18446744073709551615 128
xoroshiro128plusplus 64 0 18446744073709551615 16
xoroshiro128starstar 64 0 18446744073709551615 16
xoroshiro64starstar 32 0 4294967295 8
xoshiro128plusplus 32 0 4294967295 16
xoshiro128starstar 32 0 4294967295 16
xoshiro256plusplus 64 0 18446744073709551615 32
xoshiro256starstar 64 0 18446744073709551615 32
xoshiro512plusplus 64 0 18446744073709551615 64
xoshiro512starstar 64 0 18446744073709551615 64
xsm32 32 0 4294967295 8
xsm64 64 0 18446744073709551615 16
*/