[corlib]: Enable `HashCode` in all profiles.
commit256a6c45ec75874c3f634cadb92091b4c30dfb3c
authorMartin Baulig <mabaul@microsoft.com>
Mon, 9 Jul 2018 17:53:04 +0000 (9 13:53 -0400)
committerMarek Safar <marek.safar@gmail.com>
Tue, 10 Jul 2018 08:37:49 +0000 (10 10:37 +0200)
tree5bcf5aed91e5572ad74c59b86210e6dc7f45070d
parentc3e4cac52c584e78397d93cc9903b1a20c418b22
[corlib]: Enable `HashCode` in all profiles.

* `HashCode` is now enabled in all profiles.

* Added `RNGCryptoServiceProvider` based fallback implementation.

* Added internal `RNGCryptoServiceProvider.GetRandom(byte*,IntPtr)` overload.

* The fallback implementation is enabled by default in `corlib.dll.sources`,
  platforms which provide a native implementation need to add it to their
  `.exclude.sources`.
12 files changed:
mcs/class/corlib/CommonCrypto/CommonCrypto.cs
mcs/class/corlib/CommonCrypto/RNGCryptoServiceProvider.cryptor.cs
mcs/class/corlib/System.Security.Cryptography/RNGCryptoServiceProvider.cs
mcs/class/corlib/corefx/Interop.GetRandomBytes.Mono.cs [new file with mode: 0644]
mcs/class/corlib/corlib.dll.sources
mcs/class/corlib/linux_net_4_x_corlib.dll.exclude.sources [new file with mode: 0644]
mcs/class/corlib/macos_net_4_x_corlib.dll.exclude.sources [new file with mode: 0644]
mcs/class/corlib/macos_net_4_x_corlib.dll.sources
mcs/class/corlib/net_4_x_corlib.dll.sources
mcs/class/corlib/unix_net_4_x_corlib.dll.exclude.sources [new file with mode: 0644]
mcs/class/corlib/win32_net_4_x_corlib.dll.exclude.sources
mcs/class/corlib/winaot_corlib.dll.exclude.sources