summaryrefslogtreecommitdiff
path: root/lib/gauss.h
blob: a76df3f27206a46dfe2e3ff5741bfdce37c518a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef FIO_GAUSS_H
#define FIO_GAUSS_H

#include <inttypes.h>
#include "rand.h"

struct gauss_state {
	struct frand_state r;
	uint64_t nranges;
	unsigned int stddev;
};

void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev,
		unsigned int seed);
unsigned long long gauss_next(struct gauss_state *gs);

#endif