aboutsummaryrefslogtreecommitdiff
path: root/matrix/mmatrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/mmatrix.c')
-rw-r--r--matrix/mmatrix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/matrix/mmatrix.c b/matrix/mmatrix.c
index ffc058d..d1d68b9 100644
--- a/matrix/mmatrix.c
+++ b/matrix/mmatrix.c
@@ -1,10 +1,12 @@
#define NERV_GENERIC_MMATRIX
+#include <stdlib.h>
#include "../common.h"
void nerv_matrix_host_float_init(lua_State *L);
void nerv_matrix_host_double_init(lua_State *L);
void nerv_matrix_host_int_init(lua_State *L);
void nerv_mmatrix_init(lua_State *L) {
+ srand(1);
nerv_matrix_host_float_init(L);
nerv_matrix_host_double_init(L);
nerv_matrix_host_int_init(L);