1 | /* |
---|---|
2 | * grandom.h |
3 | * |
4 | * This file is licensed under the GPLv2 or later |
5 | * |
6 | * Pseudo-random number generation |
7 | * |
8 | * Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it> |
9 | * Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de> |
10 | */ |
11 | |
12 | #ifndef GRANDOM_H |
13 | #define GRANDOM_H |
14 | |
15 | /// Fills the given buffer with random bytes |
16 | void grandom_fill(unsigned char *buff, int size); |
17 | |
18 | /// Returns a random number in [0,1) |
19 | double grandom_double(); |
20 | |
21 | #endif |
22 |