summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-01-03 10:18:48 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-01-03 10:18:48 +0000
commitdcb2aaacd80d8af3d5a026950e17c3c738b08a7b (patch)
treeda6012d30e872c8a3c307fe58ca7b4443d82ecf8 /Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h
parent6dcf909844b7e6b3fe352973ddb42bcfaa9bad76 (diff)
poppler 0.25.1
git-svn-id: svn://tug.org/texlive/trunk@32555 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h')
-rw-r--r--Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h b/Build/source/libs/poppler/poppler-0.25.1/goo/grandom.h
new file mode 100644
index 00000000000..45fa791aba8
--- /dev/null
+++ b/Build/source/libs/poppler/poppler-0.25.1/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