From 5103e8e72d1d651fa7e144c3ff290b666f4e7c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Wed, 7 Jun 2017 19:29:28 +0100 Subject: [PATCH] Added back the Random plug. --- .../System}/RandomImpl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename source/{Unused/Old System Plugs => Cosmos.System.Plugs/System}/RandomImpl.cs (92%) diff --git a/source/Unused/Old System Plugs/RandomImpl.cs b/source/Cosmos.System.Plugs/System/RandomImpl.cs similarity index 92% rename from source/Unused/Old System Plugs/RandomImpl.cs rename to source/Cosmos.System.Plugs/System/RandomImpl.cs index 100a80990..5984a8ee6 100644 --- a/source/Unused/Old System Plugs/RandomImpl.cs +++ b/source/Cosmos.System.Plugs/System/RandomImpl.cs @@ -36,7 +36,7 @@ namespace Cosmos.System.Plugs.System return (int)((uint)(GetUniform() * diff) + minValue); } - public static void NextBytes(byte[] buffer) + public static void NextBytes(Random aThis, byte[] buffer) { for (int i = 0; i < buffer.Length; i++) { @@ -44,7 +44,7 @@ namespace Cosmos.System.Plugs.System } } - public static double NextDouble() + public static double NextDouble(Random aThis) { return GetUniform(); }