1 /*
2  * Copyright (c) 2008-2014 Travis Geiselbrecht
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #pragma once
9 
10 #include <lk/compiler.h>
11 #include <sys/types.h>
12 
13 __BEGIN_CDECLS
14 
15 int rand(void);
16 void srand(unsigned int seed);
17 
18 /* non standard extension to add some entropy to the seed */
19 void rand_add_entropy(const void *buf, size_t len);
20 
21 __END_CDECLS
22 
23