Mass reformat
This commit is contained in:
parent
4d27def35e
commit
df11e34235
27 changed files with 121 additions and 136 deletions
9
prand.c
9
prand.c
|
|
@ -3,9 +3,8 @@
|
|||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#define BUILD_SEED \
|
||||
((uint64_t)(__TIME__[0]) * (uint64_t)(__TIME__[1]) * \
|
||||
(uint64_t)(__TIME__[3]) * (uint64_t)(__TIME__[4]) * \
|
||||
#define BUILD_SEED \
|
||||
((uint64_t)(__TIME__[0]) * (uint64_t)(__TIME__[1]) * (uint64_t)(__TIME__[3]) * (uint64_t)(__TIME__[4]) * \
|
||||
(uint64_t)(__TIME__[6]) * (uint64_t)(__TIME__[7]))
|
||||
|
||||
#define PRNG_SAVE_INTERVAL 50 // Save every 1000 calls to prand()
|
||||
|
|
@ -29,7 +28,9 @@ void sprand(uint64_t s) {
|
|||
}
|
||||
}
|
||||
|
||||
void rand_reseed() { seed = BUILD_SEED; }
|
||||
void rand_reseed() {
|
||||
seed = BUILD_SEED;
|
||||
}
|
||||
|
||||
#define PRAND_MAIN
|
||||
#ifdef PRAND_MAIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue