From edaa82fbab7dedcd597121d727de8fcd0350e1fc Mon Sep 17 00:00:00 2001 From: Nicholas Little Date: Sun, 17 Aug 2014 22:33:18 +0100 Subject: [PATCH] script: Properly seed random number generator --- src/plugins/splash/script/script-lib-math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/splash/script/script-lib-math.c b/src/plugins/splash/script/script-lib-math.c index a1afc04..da53403 100644 --- a/src/plugins/splash/script/script-lib-math.c +++ b/src/plugins/splash/script/script-lib-math.c @@ -65,7 +65,7 @@ script_lib_math_data_t *script_lib_math_setup (script_state_t *state) { script_lib_math_data_t *data = malloc (sizeof (script_lib_math_data_t)); - srand ((int) ply_get_timestamp ()); + srand (time (NULL)); script_obj_t *math_hash = script_obj_hash_get_element (state->global, "Math"); script_add_native_function (math_hash, -- 1.8.5.5