From eed513c33f086152ddb1ab588fbbbe2a358fb1ae Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 21 Apr 2019 22:14:15 -0400 Subject: [PATCH] removed random number generator --- inc/qcheck.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/inc/qcheck.h b/inc/qcheck.h index 6146d29..34102da 100644 --- a/inc/qcheck.h +++ b/inc/qcheck.h @@ -109,29 +109,6 @@ QCValue* GenAsciiString(void); static int Seed = 0, NTrials = 1000; - -int myrand(rand_t* rand) { - uint64_t x = rand->state; - unsigned count = (unsigned)(x >> 59); - rand->state = x * rand->mult + rand->incr; - x ^= x >> 18; - x = (uint32_t)(x >> 27); - return (x >> count | x << (-count & 31)); -} - -void mysrand(rand_t* rand, uint64_t seed) { - rand->state = 0x4d595df4d0f33173; - rand->mult = 6364136223846793005u; - rand->incr = 1442695040888963407u; - if (seed) { - rand->state = seed + rand->incr; - (void)myrand(rand); - } -} - - - - void qcinit(int seed) { Seed = (seed ? seed : time(NULL)); srand(Seed); -- 2.55.0