about summary refs log tree commit diff
path: root/src/prng/lcong48.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prng/lcong48.c')
-rw-r--r--src/prng/lcong48.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/prng/lcong48.c b/src/prng/lcong48.c
new file mode 100644
index 00000000..32b27d42
--- /dev/null
+++ b/src/prng/lcong48.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+#include <string.h>
+
+extern unsigned short __seed48[7];
+
+void lcong48(unsigned short p[7])
+{
+	memcpy(__seed48, p, sizeof __seed48);
+}