Merge branch 'u2_10_12_branch' of git://git.code.sf.net/p/undernet-ircu/ircu2
[ircu2.10.12-pk.git] / include / random.h
diff --git a/include/random.h b/include/random.h
new file mode 100644 (file)
index 0000000..dbd1506
--- /dev/null
@@ -0,0 +1,19 @@
+/** @file random.h
+ * @brief 32-bit pseudo-random number generator interface.
+ * @version $Id$
+ */
+#ifndef INCLUDED_random_h
+#define INCLUDED_random_h
+
+struct Client;
+
+/*
+ * Proto types
+ */
+
+extern int random_seed_set(struct Client* from, const char* const* fields,
+                          int count);
+
+extern unsigned int ircrandom(void);
+
+#endif /* INCLUDED_random_h */