diff options
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.25.2/goo/grandom.h')
-rw-r--r-- | Build/source/libs/poppler/poppler-0.25.2/goo/grandom.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.25.2/goo/grandom.h b/Build/source/libs/poppler/poppler-0.25.2/goo/grandom.h new file mode 100644 index 00000000000..45fa791aba8 --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.25.2/goo/grandom.h @@ -0,0 +1,34 @@ +/* + * grandom.h + * + * This file is licensed under the GPLv2 or later + * + * Pseudo-random number generation + * + * Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it> + */ + +#ifndef GRANDOM_H +#define GRANDOM_H + +#include "gtypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Fills the given buffer with random bytes + */ +extern void grandom_fill(Guchar *buff, int size); + +/* + * Returns a random number in [0,1) + */ +extern double grandom_double(); + +#ifdef __cplusplus +} +#endif + +#endif |