diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Marvin.cs | 6 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/String.Comparison.cs | 2 |
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; |