librfn
An ad-hoc utility library
rand.h
Go to the documentation of this file.
1 /*
2  * rand.h
3  *
4  * Part of librfn (a general utility library from redfelineninja.org.uk)
5  *
6  * Copyright (C) 2012-2014 Daniel Thompson <daniel@redfelineninja.org.uk>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published
10  * by the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  */
13 
14 #ifndef RF_RAND_H_
15 #define RF_RAND_H_
16 
17 #include <stdint.h>
18 
38 #define RAND31_VAR_INIT 1
39 
52 uint32_t rand31_r(uint32_t *seedp);
53 
55 #endif // RF_RAND_H_
uint32_t rand31_r(uint32_t *seedp)
Definition: rand.c:23