search for: nr_reads

Displaying 2 results from an estimated 2 matches for "nr_reads".

Did you mean: nr_heads
2018 Dec 28
0
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
...ot; + "eg. byte %d occurs %u times (expected about %u times)\n", + i, histogram[i], expected); + exit (EXIT_FAILURE); + } + } + + /* Randomly read parts of the disk to ensure we get the same data. + */ srandom (time (NULL)); for (i = 0; i < NR_READS; ++i) { offset = random (); diff --git a/common/include/Makefile.am b/common/include/Makefile.am index 81f4804..f96bab5 100644 --- a/common/include/Makefile.am +++ b/common/include/Makefile.am @@ -41,4 +41,5 @@ EXTRA_DIST = \ isaligned.h \ ispowerof2.h \ iszero.h \ + random.h \ roundin...
2018 Dec 28
2
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
v2: - Fix seeding. - Add a test that nbdkit-random-plugin is producing something which looks at least somewhat random. Rich.