From 42fc64c1363ca512c8fdcec2339a02014b9a5c15 Mon Sep 17 00:00:00 2001 From: otya128 Date: Tue, 4 Jul 2017 15:39:11 +0900 Subject: [PATCH] Change RNG to Xorshift64 --- SMILEBASIC/random.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SMILEBASIC/random.d b/SMILEBASIC/random.d index 21c7276..3d7a56b 100644 --- a/SMILEBASIC/random.d +++ b/SMILEBASIC/random.d @@ -3,7 +3,9 @@ import std.random; class Random { - LinearCongruentialEngine!(uint, 16_807, 0, 2_147_483_647)[8] engine; + alias RandomType = Xorshift64; + //LinearCongruentialEngine!(uint, 16_807, 0, 2_147_483_647)[8] engine; + RandomType[8] engine; public this() { foreach (e; engine)