Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-11 10:26:10

0001 /*
0002  * grandom.h
0003  *
0004  * This file is licensed under the GPLv2 or later
0005  *
0006  * Pseudo-random number generation
0007  *
0008  * Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
0009  * Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
0010  */
0011 
0012 #ifndef GRANDOM_H
0013 #define GRANDOM_H
0014 
0015 /// Fills the given buffer with random bytes
0016 void grandom_fill(unsigned char *buff, int size);
0017 
0018 /// Returns a random number in [0,1)
0019 double grandom_double();
0020 
0021 #endif