blob: 63bca38f694112acf0e3abbfe29550f1cdf2f87f [file] [log] [blame]
/*
* grandom.h
*
* This file is licensed under the GPLv2 or later
*
* Pseudo-random number generation
*
* Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
* Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
*/
#ifndef GRANDOM_H
#define GRANDOM_H
#include "gtypes.h"
/// Fills the given buffer with random bytes
void grandom_fill(Guchar *buff, int size);
/// Returns a random number in [0,1)
double grandom_double();
#endif