]> git.ozlabs.org Git - ppp.git/blob - NeXT/random.h
use asm/byteorder.h, not endian.h
[ppp.git] / NeXT / random.h
1 /*
2  * Because the standard library random number
3  * functions are not availble at the kernel level
4  * I wrote this simple random number generator.
5  *
6  * It uses the multiplicative congruential method.
7  * See pg 263 of Banks and Carson "Discrete-Event
8  * System Simulation".
9  *
10  */
11
12 void srand(unsigned i);
13 unsigned rand(void);
14 float frand(void);