summaryrefslogtreecommitdiff
path: root/src/librandom/unisurf_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librandom/unisurf_init.c')
-rw-r--r--src/librandom/unisurf_init.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/librandom/unisurf_init.c b/src/librandom/unisurf_init.c
new file mode 100644
index 0000000..d5a1f73
--- /dev/null
+++ b/src/librandom/unisurf_init.c
@@ -0,0 +1,18 @@
+/* ISC license. */
+
+#include <skalibs/surf.h>
+#include "random-internal.h"
+#include <skalibs/unirandom.h>
+#include <skalibs/unisurf.h>
+
+int unisurf_init (union unirandominfo *u)
+{
+ surf_init(&u->surf_ctx) ;
+ return 1 ;
+}
+
+int unirandom_register_surf (unirandom *u)
+{
+ unirandom_register(u, &unisurf_init, &unisurf_finish, &unisurf_read, &unisurf_read) ;
+ return 1 ;
+}