Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2018-03-02 12:55:55 +0300
committerMarek Safar <marek.safar@gmail.com>2018-03-02 12:55:55 +0300
commit0315dc0fdf3ba7876db7d430587c99b33ddc3ae5 (patch)
treef5ae713f1c78c0e1f0b7aff1e5e03dab373e9f10
parent751b91ba5ed72c4506051d3d5bfcdd226020179b (diff)
Mono tweaks
-rw-r--r--src/System.Private.CoreLib/src/System/Marvin.cs6
-rw-r--r--src/System.Private.CoreLib/src/System/String.Comparison.cs2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/src/System/Marvin.cs b/src/System.Private.CoreLib/src/System/Marvin.cs
index 32ae26eb1..f703423e6 100644
--- a/src/System.Private.CoreLib/src/System/Marvin.cs
+++ b/src/System.Private.CoreLib/src/System/Marvin.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System.Diagnostics;
+using System.Diagnostics.Private;
using System.Runtime.CompilerServices;
using Internal.Runtime.CompilerServices;
@@ -131,12 +131,16 @@ namespace System
private static ulong GenerateSeed()
{
+#if MONO
+ return 839433921;
+#else
ulong seed;
unsafe
{
Interop.GetRandomBytes((byte*)&seed, sizeof(ulong));
}
return seed;
+#endif
}
}
}
diff --git a/src/System.Private.CoreLib/src/System/String.Comparison.cs b/src/System.Private.CoreLib/src/System/String.Comparison.cs
index 914fa6aa1..05f6f1bdd 100644
--- a/src/System.Private.CoreLib/src/System/String.Comparison.cs
+++ b/src/System.Private.CoreLib/src/System/String.Comparison.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System.Diagnostics;
+using System.Diagnostics.Private;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;