aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/init.c b/src/core/init.c
index 3ae10a21..f10173c8 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -14,6 +14,11 @@
static int
nni_init_helper(void)
{
+ int rv;
+
+ if ((rv = nni_random_init()) != 0) {
+ return (rv);
+ }
nni_tran_init();
return (0);
}
@@ -30,5 +35,6 @@ void
nni_fini(void)
{
nni_tran_fini();
+ nni_random_fini();
nni_plat_fini();
}