aboutsummaryrefslogtreecommitdiff
path: root/src/math/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/random.h')
-rw-r--r--src/math/random.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/math/random.h b/src/math/random.h
new file mode 100644
index 0000000..5d3d17f
--- /dev/null
+++ b/src/math/random.h
@@ -0,0 +1,17 @@
+/*
+ * ecgen, tool for generating Elliptic curve domain parameters
+ * Copyright (C) 2017 J08nY
+ */
+#ifndef ECGEN_RANDOM_H
+#define ECGEN_RANDOM_H
+
+#include <pari/pari.h>
+#include <stdbool.h>
+
+bool random_init();
+
+GEN random_prime(long bits);
+
+GEN random_int(long bits);
+
+#endif // ECGEN_RANDOM_H