diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-03-02 12:55:55 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-03-02 12:55:55 +0300 |
commit | 0315dc0fdf3ba7876db7d430587c99b33ddc3ae5 (patch) | |
tree | f5ae713f1c78c0e1f0b7aff1e5e03dab373e9f10 | |
parent | 751b91ba5ed72c4506051d3d5bfcdd226020179b (diff) |
Mono tweaks
-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; |