diff options
author | Jay Krell <jay.krell@cornell.edu> | 2018-06-28 05:53:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 05:53:31 +0300 |
commit | c28d4dbdd79eaab7cca0ecb7ca508bed3dfc6420 (patch) | |
tree | d6364faa1d8527d6c4d6551f41f5afdfad7b7de5 /msvc | |
parent | 0b87a15efa1ffe87e3093b13907bec0090883921 (diff) |
Modernize Windows random number generation. (#9090)
* Modernize Windows random number generation.
- Less code.
- Less chance for failure.
- Not seedable.
- Requires Windows 7 or newer -- er, require Vista or newer until/unless Unity drops it, under ifdef.
This might get much further pruned with CoreFX import, which is on hold here, and doesn't really change much, except to indeed drop Vista support. (https://github.com/mono/mono/pull/9249)
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/libmonoutils-common.targets | 1 | ||||
-rw-r--r-- | msvc/libmonoutils-common.targets.filters | 3 | ||||
-rw-r--r-- | msvc/mono.props | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/msvc/libmonoutils-common.targets b/msvc/libmonoutils-common.targets index c23763a63c7..78900f54700 100644 --- a/msvc/libmonoutils-common.targets +++ b/msvc/libmonoutils-common.targets @@ -183,7 +183,6 @@ <ClCompile Include="$(MonoSourceLocation)\mono\utils\mono-rand.c" /> <ClCompile Include="$(MonoSourceLocation)\mono\utils\mono-rand-windows.c" /> <ClInclude Include="$(MonoSourceLocation)\mono\utils\mono-rand.h" /> - <ClInclude Include="$(MonoSourceLocation)\mono\utils\mono-rand-windows-internals.h" /> <ClCompile Include="$(MonoSourceLocation)\mono\utils\memfuncs.c" /> <ClInclude Include="$(MonoSourceLocation)\mono\utils\memfuncs.h" /> <ClCompile Include="$(MonoSourceLocation)\mono\utils\parse.c" /> diff --git a/msvc/libmonoutils-common.targets.filters b/msvc/libmonoutils-common.targets.filters index 53e60577b05..347c0df12fc 100644 --- a/msvc/libmonoutils-common.targets.filters +++ b/msvc/libmonoutils-common.targets.filters @@ -430,9 +430,6 @@ <ClInclude Include="$(MonoSourceLocation)\mono\utils\mono-rand.h"> <Filter>Header Files$(MonoUtilsFilterSubFolder)\common</Filter> </ClInclude> - <ClInclude Include="$(MonoSourceLocation)\mono\utils\mono-rand-windows-internals.h"> - <Filter>Header Files$(MonoUtilsFilterSubFolder)\common</Filter> - </ClInclude> <ClCompile Include="$(MonoSourceLocation)\mono\utils\memfuncs.c"> <Filter>Source Files$(MonoUtilsFilterSubFolder)\common</Filter> </ClCompile> diff --git a/msvc/mono.props b/msvc/mono.props index 4c93b8dc47b..8853136478b 100644 --- a/msvc/mono.props +++ b/msvc/mono.props @@ -122,7 +122,7 @@ <RuntimeLibrary>$(MONO_C_RUNTIME)</RuntimeLibrary> </ClCompile> <Link> - <AdditionalDependencies>Mswsock.lib;ws2_32.lib;ole32.lib;oleaut32.lib;psapi.lib;version.lib;advapi32.lib;winmm.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalDependencies>bcrypt.lib;Mswsock.lib;ws2_32.lib;ole32.lib;oleaut32.lib;psapi.lib;version.lib;advapi32.lib;winmm.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>$(MONO_BUILD_DIR_PREFIX)$(Platform)/lib/$(Configuration)</AdditionalLibraryDirectories> </Link> <Lib> |