Split code into modules, handle USR1, minor fixes.
[reservoir_sample] / randomness.h
1 #ifndef RANDOMNESS_H_4LC721CM
2 #define RANDOMNESS_H_4LC721CM
3
4 /*
5 Wrapper for wrangling random values.
6 */
7
8 /* rand_init
9 Prepare to read randomness from #filename.
10 If filename is NULL, use system pseudorandom generator.
11 */
12 int randomness_init(const char *filename);
13
14 /* randomness_upto_inclusive
15 Return a random number from zero up through #limit.
16 */
17 unsigned long randomness_upto_inclusive(unsigned long limit);
18
19 #endif /* RANDOMNESS_H_4LC721CM */