L4Re - L4 Runtime Environment
rand.h
Go to the documentation of this file.
1 
8 /*
9  * (c) 2008-2009 Author(s)
10  * economic rights: Technische Universit├Ąt Dresden (Germany)
11  * This file is part of TUD:OS and distributed under the terms of the
12  * GNU Lesser General Public License 2.1.
13  * Please see the COPYING-LGPL-2.1 file for details.
14  */
15 
16 #ifndef __L4UTIL_RAND_H
17 #define __L4UTIL_RAND_H
18 
19 #define L4_RAND_MAX 65535
20 
21 #include <l4/sys/compiler.h>
22 #include <l4/sys/l4int.h>
23 
25 
38 l4util_rand(void);
39 
46 L4_CV void
48 
50 
51 #endif /* __L4UTIL_RAND_H */
void l4util_srand(l4_uint32_t seed)
Initialize random number generator.
#define EXTERN_C_END
End section with C types and functions.
Definition: compiler.h:187
l4_uint32_t l4util_rand(void)
Deliver next random number.
L4 compiler related defines.
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition: compiler.h:186
#define L4_CV
Define calling convention.
Definition: linkage.h:44
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition: l4int.h:40