beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / goo / grandom.h
blob45fa791aba8c62909c1eccb1579022dd22adbd24
1 /*
2 * grandom.h
4 * This file is licensed under the GPLv2 or later
6 * Pseudo-random number generation
8 * Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
9 */
11 #ifndef GRANDOM_H
12 #define GRANDOM_H
14 #include "gtypes.h"
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
21 * Fills the given buffer with random bytes
23 extern void grandom_fill(Guchar *buff, int size);
26 * Returns a random number in [0,1)
28 extern double grandom_double();
30 #ifdef __cplusplus
32 #endif
34 #endif