aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/system_rng/system_rng.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-02 13:33:10 +0000
committerlloyd <[email protected]>2014-12-02 13:33:10 +0000
commit2f884827b2aa1b070795230ebe012f1708ded73a (patch)
treebb13325a9254f210bd7cc4dd50b22b6957c48800 /src/lib/rng/system_rng/system_rng.h
parente78801f8c8a168d70ae06769ec6996c4e0da122f (diff)
Add an easy way to directly use the system PRNG.
Diffstat (limited to 'src/lib/rng/system_rng/system_rng.h')
-rw-r--r--src/lib/rng/system_rng/system_rng.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/rng/system_rng/system_rng.h b/src/lib/rng/system_rng/system_rng.h
new file mode 100644
index 000000000..6b4746a9c
--- /dev/null
+++ b/src/lib/rng/system_rng/system_rng.h
@@ -0,0 +1,19 @@
+/*
+* System RNG interface
+* (C) 2014 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_SYSTEM_RNG_H__
+#define BOTAN_SYSTEM_RNG_H__
+
+#include <botan/rng.h>
+
+namespace Botan {
+
+BOTAN_DLL RandomNumberGenerator& system_rng();
+
+}
+
+#endif