From 92d58a58ef74665199c51e8bd907ddebfc23bc32 Mon Sep 17 00:00:00 2001 From: posidron <1614333+posidron@users.noreply.github.com> Date: Tue, 28 Aug 2018 00:54:24 +0200 Subject: [PATCH] Fix random seed value --- lib/random/random.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/random/random.js b/lib/random/random.js index 8983369..8986d47 100644 --- a/lib/random/random.js +++ b/lib/random/random.js @@ -13,6 +13,8 @@ class random { static init (seed) { if (seed === null || seed === undefined) { random.seed = new Date().getTime() + } else { + random.seed = seed } random.twister = new MersenneTwister()