use CSPRandom with MONO
add MONO comments to RunUO.exe.config
This commit is contained in:
parent
1d2ca9ad58
commit
cf7bc3043f
2 changed files with 5 additions and 1 deletions
|
|
@ -3,4 +3,8 @@
|
|||
<runtime>
|
||||
<gcServer enabled="true" />
|
||||
</runtime>
|
||||
<!--
|
||||
MONO/Linux users will need to uncomment and modify the following line:
|
||||
-->
|
||||
<!--<dllmap dll="libz" target="/lib/x86_64-linux-gnu/libz.so.1" />-->
|
||||
</configuration>
|
||||
|
|
@ -22,7 +22,7 @@ namespace Server {
|
|||
|
||||
static RandomImpl() {
|
||||
if ( Core.Unix ) {
|
||||
_Random = new SimpleRandom();
|
||||
_Random = new CSPRandom();
|
||||
} else if (Core.Is64Bit && File.Exists("rdrand64.dll")) {
|
||||
_Random = new RDRand64();
|
||||
} else if ( !Core.Is64Bit && File.Exists("rdrand32.dll") ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue