diff --git a/Server/Main.cs b/Server/Main.cs index 504c5dabe..ffe43e0dd 100644 --- a/Server/Main.cs +++ b/Server/Main.cs @@ -478,6 +478,8 @@ namespace Server if ( GCSettings.IsServerGC ) Console.WriteLine("Core: Server garbage collection mode enabled"); + Console.WriteLine("RandomImpl: {0} ({1})", RandomImpl.Type.Name, RandomImpl.IsHardwareRNG ? "Hardware" : "Software"); + while( !ScriptCompiler.Compile( m_Debug, m_Cache ) ) { Console.WriteLine( "Scripts: One or more scripts failed to compile or no script files were found." ); diff --git a/Server/Random.cs b/Server/Random.cs index b3ba5de91..6311482d4 100644 --- a/Server/Random.cs +++ b/Server/Random.cs @@ -38,6 +38,14 @@ namespace Server { } } + public static bool IsHardwareRNG { + get { return _Random is IHardwareRNG; } + } + + public static Type Type { + get { return _Random.GetType(); } + } + public static double NextDouble() { return _Random.NextDouble(); }