thejagstudio's picture
Upload 477 files
a9694d2 verified
raw
history blame contribute delete
441 Bytes
/*
* grandom.h
*
* This file is licensed under the GPLv2 or later
*
* Pseudo-random number generation
*
* Copyright (C) 2012 Fabio D'Urso <[email protected]>
* Copyright (C) 2018 Adam Reichold <[email protected]>
*/
#ifndef GRANDOM_H
#define GRANDOM_H
/// Fills the given buffer with random bytes
void grandom_fill(unsigned char *buff, int size);
/// Returns a random number in [0,1)
double grandom_double();
#endif