From 037f6317f4682d191d4c8a4e891336f577a6d88b Mon Sep 17 00:00:00 2001 From: sourcehold Date: Wed, 13 May 2026 12:50:25 +0200 Subject: [PATCH 1/6] reimplement: OpenSHC::Random::RNG 100% --- src/OpenSHC/Random/RNG.func.hpp | 8 ++-- src/OpenSHC/Random/RNG/Constructor_RNG.cpp | 17 +++++++++ src/OpenSHC/Random/RNG/nextRandomNumber1.cpp | 19 ++++++++++ src/OpenSHC/Random/RNG/nextRandomNumber2.cpp | 19 ++++++++++ src/OpenSHC/Random/RNG/populateRNG1040.cpp | 39 ++++++++++++++++++++ src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp | 20 ++++++++++ status/addresses-SHC-3BB0A8C1.txt | 10 ++--- 7 files changed, 123 insertions(+), 9 deletions(-) create mode 100644 src/OpenSHC/Random/RNG/Constructor_RNG.cpp create mode 100644 src/OpenSHC/Random/RNG/nextRandomNumber1.cpp create mode 100644 src/OpenSHC/Random/RNG/nextRandomNumber2.cpp create mode 100644 src/OpenSHC/Random/RNG/populateRNG1040.cpp create mode 100644 src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp diff --git a/src/OpenSHC/Random/RNG.func.hpp b/src/OpenSHC/Random/RNG.func.hpp index 6ca23d58..aad2d6b5 100644 --- a/src/OpenSHC/Random/RNG.func.hpp +++ b/src/OpenSHC/Random/RNG.func.hpp @@ -7,16 +7,16 @@ namespace OpenSHC { namespace Random { namespace RNG_Func { - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A740, &RNG::setTimeBasedSeed) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A740, &RNG::setTimeBasedSeed) setTimeBasedSeed; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A760, &RNG::populateRNG1040) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A760, &RNG::populateRNG1040) populateRNG1040; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A7D0, &RNG::nextRandomNumber2) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A7D0, &RNG::nextRandomNumber2) nextRandomNumber2; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A800, &RNG::nextRandomNumber1) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A800, &RNG::nextRandomNumber1) nextRandomNumber1; } // namespace RNG_Func diff --git a/src/OpenSHC/Random/RNG/Constructor_RNG.cpp b/src/OpenSHC/Random/RNG/Constructor_RNG.cpp new file mode 100644 index 00000000..d21cce3c --- /dev/null +++ b/src/OpenSHC/Random/RNG/Constructor_RNG.cpp @@ -0,0 +1,17 @@ +#include "OpenSHC/Random/RNG.func.hpp" +#include "OpenSHC/Random/RNG.hpp" + +namespace OpenSHC { +namespace Random { + + // FUNCTION: STRONGHOLDCRUSADER 0x00471810 + RNG* RNG::Constructor_RNG() + + { + MACRO_CALL_MEMBER(RNG_Func::setTimeBasedSeed, this)(); + MACRO_CALL_MEMBER(RNG_Func::populateRNG1040, this)(); + return this; + } + +} +} diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp new file mode 100644 index 00000000..accd6be6 --- /dev/null +++ b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp @@ -0,0 +1,19 @@ + +#include "OpenSHC/Random/RNG.hpp" + +namespace OpenSHC { +namespace Random { + + // FUNCTION: STRONGHOLDCRUSADER 0x0046a800 + void RNG::nextRandomNumber1() + { + this->currentNumber1 = this->randomNumbers[this->index1]; + this->index1 = this->index1 + 1; + if (20000 <= this->index1) { + this->index1 = 0; + } + return; + } +} + +} diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp new file mode 100644 index 00000000..37df090f --- /dev/null +++ b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp @@ -0,0 +1,19 @@ + +#include "OpenSHC/Random/RNG.hpp" + +namespace OpenSHC { +namespace Random { + + // FUNCTION: STRONGHOLDCRUSADER 0x0046a7d0 + void RNG::nextRandomNumber2() + { + this->currentNumber2 = this->randomNumbers[this->index2]; + this->index2 = this->index2 + 1; + if (20000 <= this->index2) { + this->index2 = 0; + } + return; + } +} + +} diff --git a/src/OpenSHC/Random/RNG/populateRNG1040.cpp b/src/OpenSHC/Random/RNG/populateRNG1040.cpp new file mode 100644 index 00000000..efc746e3 --- /dev/null +++ b/src/OpenSHC/Random/RNG/populateRNG1040.cpp @@ -0,0 +1,39 @@ +#include "OpenSHC/Global.func.hpp" +#include "OpenSHC/OS.func.hpp" +#include "OpenSHC/Random/RNG.func.hpp" +#include "OpenSHC/Random/RNG.hpp" + +namespace OpenSHC { +namespace Random { + + // FUNCTION: STRONGHOLDCRUSADER 0x0046a760 + void RNG::populateRNG1040() + + { + int iVar1; + int iVar2; + short* _pRandomNumber; + + MACRO_CALL(OpenSHC::Global_Func::SetRNGSeed)(this->seed); + this->index2 = 0; + this->index1 = 0; + _pRandomNumber = &this->randomNumbers[0]; + iVar2 = 20000; + do { + iVar1 = MACRO_CALL(OpenSHC::OS_Func::_rand)(); + *_pRandomNumber = (short)iVar1; + _pRandomNumber = _pRandomNumber + 1; + iVar2 = iVar2 + -1; + } while (iVar2 != 0); + + this->currentNumber2 = this->randomNumbers[this->index2]; + this->index2 = this->index2 + 1; + + this->currentNumber1 = this->randomNumbers[this->index1]; + this->index1 = this->index1 + 1; + + return; + } + +} +} diff --git a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp new file mode 100644 index 00000000..4fb06aab --- /dev/null +++ b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp @@ -0,0 +1,20 @@ +#include "OpenSHC/OS.func.hpp" +#include "OpenSHC/Random/RNG.func.hpp" +#include "OpenSHC/Random/RNG.hpp" +#include + +namespace OpenSHC { +namespace Random { + + // FUNCTION: STRONGHOLDCRUSADER 0x0046a740 + void RNG::setTimeBasedSeed() + + { + + __time64_t _Var1 = MACRO_CALL(OpenSHC::OS_Func::__time64)((__time64_t*)0x0); + this->seed = (int)_Var1; + return; + } + +} +} diff --git a/status/addresses-SHC-3BB0A8C1.txt b/status/addresses-SHC-3BB0A8C1.txt index 36120333..d09f48e2 100644 --- a/status/addresses-SHC-3BB0A8C1.txt +++ b/status/addresses-SHC-3BB0A8C1.txt @@ -10168,10 +10168,10 @@ SHC_3BB0A8C1_0x0046A4C4 | 0.0% | Pending SHC_3BB0A8C1_0x0046A4C8 | 0.0% | Pending SHC_3BB0A8C1_0x0046A4D0 | 0.0% | Pending SHC_3BB0A8C1_0x0046A720 | 0.0% | Pending -SHC_3BB0A8C1_0x0046A740 | 0.0% | Pending -SHC_3BB0A8C1_0x0046A760 | 0.0% | Pending -SHC_3BB0A8C1_0x0046A7D0 | 0.0% | Pending -SHC_3BB0A8C1_0x0046A800 | 0.0% | Pending +SHC_3BB0A8C1_0x0046A740 | 100.0% | Reimplemented +SHC_3BB0A8C1_0x0046A760 | 100.0% | Reimplemented +SHC_3BB0A8C1_0x0046A7D0 | 100.0% | Reimplemented +SHC_3BB0A8C1_0x0046A800 | 100.0% | Reimplemented SHC_3BB0A8C1_0x0046A830 | 0.0% | Pending SHC_3BB0A8C1_0x0046A850 | 0.0% | Pending SHC_3BB0A8C1_0x0046A890 | 0.0% | Pending @@ -10475,7 +10475,7 @@ SHC_3BB0A8C1_0x004717F8 | 0.0% | Pending SHC_3BB0A8C1_0x004717FC | 0.0% | Pending SHC_3BB0A8C1_0x00471800 | 0.0% | Pending SHC_3BB0A8C1_0x00471804 | 0.0% | Pending -SHC_3BB0A8C1_0x00471810 | 0.0% | Pending +SHC_3BB0A8C1_0x00471810 | 100.0% | Reimplemented SHC_3BB0A8C1_0x00471830 | 0.0% | Pending SHC_3BB0A8C1_0x00471860 | 0.0% | Pending SHC_3BB0A8C1_0x00471890 | 0.0% | Pending From 8b9bb9e356e1c0e6862c86cafaacd665e9c134ff Mon Sep 17 00:00:00 2001 From: sourcehold Date: Wed, 13 May 2026 12:56:00 +0200 Subject: [PATCH 2/6] improve code style --- src/OpenSHC/Random/RNG/populateRNG1040.cpp | 21 +++++++++------------ src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp | 4 ++-- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/OpenSHC/Random/RNG/populateRNG1040.cpp b/src/OpenSHC/Random/RNG/populateRNG1040.cpp index efc746e3..89aadefd 100644 --- a/src/OpenSHC/Random/RNG/populateRNG1040.cpp +++ b/src/OpenSHC/Random/RNG/populateRNG1040.cpp @@ -10,27 +10,24 @@ namespace Random { void RNG::populateRNG1040() { - int iVar1; - int iVar2; - short* _pRandomNumber; MACRO_CALL(OpenSHC::Global_Func::SetRNGSeed)(this->seed); this->index2 = 0; this->index1 = 0; - _pRandomNumber = &this->randomNumbers[0]; - iVar2 = 20000; + short* _pRandomNumber = &this->randomNumbers[0]; + int n = 20000; do { - iVar1 = MACRO_CALL(OpenSHC::OS_Func::_rand)(); - *_pRandomNumber = (short)iVar1; - _pRandomNumber = _pRandomNumber + 1; - iVar2 = iVar2 + -1; - } while (iVar2 != 0); + int random = MACRO_CALL(OpenSHC::OS_Func::_rand)(); + *_pRandomNumber = (short)random; + _pRandomNumber += 1; + n -= 1; + } while (n != 0); this->currentNumber2 = this->randomNumbers[this->index2]; - this->index2 = this->index2 + 1; + this->index2 += 1; this->currentNumber1 = this->randomNumbers[this->index1]; - this->index1 = this->index1 + 1; + this->index1 += 1; return; } diff --git a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp index 4fb06aab..3d62394c 100644 --- a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp +++ b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp @@ -11,8 +11,8 @@ namespace Random { { - __time64_t _Var1 = MACRO_CALL(OpenSHC::OS_Func::__time64)((__time64_t*)0x0); - this->seed = (int)_Var1; + __time64_t time = MACRO_CALL(OpenSHC::OS_Func::__time64)((__time64_t*)0x0); + this->seed = (int)time; return; } From 5d12ea3e688a545c493345dcc1e627cc732a978d Mon Sep 17 00:00:00 2001 From: sourcehold Date: Fri, 22 May 2026 14:22:10 +0200 Subject: [PATCH 3/6] improve style --- src/OpenSHC/Random/RNG/Constructor_RNG.cpp | 1 - src/OpenSHC/Random/RNG/nextRandomNumber1.cpp | 5 ++--- src/OpenSHC/Random/RNG/nextRandomNumber2.cpp | 2 +- src/OpenSHC/Random/RNG/populateRNG1040.cpp | 11 +++-------- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/OpenSHC/Random/RNG/Constructor_RNG.cpp b/src/OpenSHC/Random/RNG/Constructor_RNG.cpp index d21cce3c..9360960a 100644 --- a/src/OpenSHC/Random/RNG/Constructor_RNG.cpp +++ b/src/OpenSHC/Random/RNG/Constructor_RNG.cpp @@ -6,7 +6,6 @@ namespace Random { // FUNCTION: STRONGHOLDCRUSADER 0x00471810 RNG* RNG::Constructor_RNG() - { MACRO_CALL_MEMBER(RNG_Func::setTimeBasedSeed, this)(); MACRO_CALL_MEMBER(RNG_Func::populateRNG1040, this)(); diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp index accd6be6..605e2264 100644 --- a/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp +++ b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp @@ -8,11 +8,10 @@ namespace Random { void RNG::nextRandomNumber1() { this->currentNumber1 = this->randomNumbers[this->index1]; - this->index1 = this->index1 + 1; - if (20000 <= this->index1) { + this->index1 += 1; + if (sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]) <= this->index1) { this->index1 = 0; } - return; } } diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp index 37df090f..7568f91d 100644 --- a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp +++ b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp @@ -9,7 +9,7 @@ namespace Random { { this->currentNumber2 = this->randomNumbers[this->index2]; this->index2 = this->index2 + 1; - if (20000 <= this->index2) { + if (sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]) <= this->index2) { this->index2 = 0; } return; diff --git a/src/OpenSHC/Random/RNG/populateRNG1040.cpp b/src/OpenSHC/Random/RNG/populateRNG1040.cpp index 89aadefd..b1fbe5a5 100644 --- a/src/OpenSHC/Random/RNG/populateRNG1040.cpp +++ b/src/OpenSHC/Random/RNG/populateRNG1040.cpp @@ -14,14 +14,9 @@ namespace Random { MACRO_CALL(OpenSHC::Global_Func::SetRNGSeed)(this->seed); this->index2 = 0; this->index1 = 0; - short* _pRandomNumber = &this->randomNumbers[0]; - int n = 20000; - do { - int random = MACRO_CALL(OpenSHC::OS_Func::_rand)(); - *_pRandomNumber = (short)random; - _pRandomNumber += 1; - n -= 1; - } while (n != 0); + for (int i = 0; i < sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]); i++) { + this->randomNumbers[i] = MACRO_CALL(OpenSHC::OS_Func::_rand)(); + } this->currentNumber2 = this->randomNumbers[this->index2]; this->index2 += 1; From 166b5bfaf400cf8adc3aa8a34ff7ab3726001313 Mon Sep 17 00:00:00 2001 From: sourcehold Date: Fri, 22 May 2026 14:25:42 +0200 Subject: [PATCH 4/6] improve style, remove sizeof --- src/OpenSHC/Random/RNG/nextRandomNumber1.cpp | 4 ++-- src/OpenSHC/Random/RNG/nextRandomNumber2.cpp | 2 +- src/OpenSHC/Random/RNG/populateRNG1040.cpp | 2 +- src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp index 605e2264..988ef465 100644 --- a/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp +++ b/src/OpenSHC/Random/RNG/nextRandomNumber1.cpp @@ -4,12 +4,12 @@ namespace OpenSHC { namespace Random { - // FUNCTION: STRONGHOLDCRUSADER 0x0046a800 + // FUNCTION: STRONGHOLDCRUSADER 0x0046A800 void RNG::nextRandomNumber1() { this->currentNumber1 = this->randomNumbers[this->index1]; this->index1 += 1; - if (sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]) <= this->index1) { + if (20000 <= this->index1) { this->index1 = 0; } } diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp index 7568f91d..37df090f 100644 --- a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp +++ b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp @@ -9,7 +9,7 @@ namespace Random { { this->currentNumber2 = this->randomNumbers[this->index2]; this->index2 = this->index2 + 1; - if (sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]) <= this->index2) { + if (20000 <= this->index2) { this->index2 = 0; } return; diff --git a/src/OpenSHC/Random/RNG/populateRNG1040.cpp b/src/OpenSHC/Random/RNG/populateRNG1040.cpp index b1fbe5a5..f3cae528 100644 --- a/src/OpenSHC/Random/RNG/populateRNG1040.cpp +++ b/src/OpenSHC/Random/RNG/populateRNG1040.cpp @@ -14,7 +14,7 @@ namespace Random { MACRO_CALL(OpenSHC::Global_Func::SetRNGSeed)(this->seed); this->index2 = 0; this->index1 = 0; - for (int i = 0; i < sizeof(this->randomNumbers) / sizeof(this->randomNumbers[0]); i++) { + for (int i = 0; i < 20000; i++) { this->randomNumbers[i] = MACRO_CALL(OpenSHC::OS_Func::_rand)(); } diff --git a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp index 3d62394c..6e84f93b 100644 --- a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp +++ b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp @@ -6,7 +6,7 @@ namespace OpenSHC { namespace Random { - // FUNCTION: STRONGHOLDCRUSADER 0x0046a740 + // FUNCTION: STRONGHOLDCRUSADER 0x0046A740 void RNG::setTimeBasedSeed() { From 08c8b8f8b32f91e873672296f378b3b16c625b6d Mon Sep 17 00:00:00 2001 From: sourcehold Date: Fri, 22 May 2026 14:27:05 +0200 Subject: [PATCH 5/6] remove .func. --- src/OpenSHC/Random/RNG.func.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenSHC/Random/RNG.func.hpp b/src/OpenSHC/Random/RNG.func.hpp index aad2d6b5..6ca23d58 100644 --- a/src/OpenSHC/Random/RNG.func.hpp +++ b/src/OpenSHC/Random/RNG.func.hpp @@ -7,16 +7,16 @@ namespace OpenSHC { namespace Random { namespace RNG_Func { - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A740, &RNG::setTimeBasedSeed) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A740, &RNG::setTimeBasedSeed) setTimeBasedSeed; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A760, &RNG::populateRNG1040) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A760, &RNG::populateRNG1040) populateRNG1040; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A7D0, &RNG::nextRandomNumber2) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A7D0, &RNG::nextRandomNumber2) nextRandomNumber2; - MACRO_FUNCTION_RESOLVER(void (RNG::*)(), true, Address::SHC_3BB0A8C1_0x0046A800, &RNG::nextRandomNumber1) + MACRO_FUNCTION_RESOLVER(void (RNG::*)(), false, Address::SHC_3BB0A8C1_0x0046A800, &RNG::nextRandomNumber1) nextRandomNumber1; } // namespace RNG_Func From 97e9f7ae1b0028efe41fa02b638c68a74d5fd3e3 Mon Sep 17 00:00:00 2001 From: Gynt Date: Fri, 22 May 2026 23:01:34 +0200 Subject: [PATCH 6/6] remove early returns --- src/OpenSHC/Random/RNG/nextRandomNumber2.cpp | 1 - src/OpenSHC/Random/RNG/populateRNG1040.cpp | 4 ---- src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp index 37df090f..cb2de6af 100644 --- a/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp +++ b/src/OpenSHC/Random/RNG/nextRandomNumber2.cpp @@ -12,7 +12,6 @@ namespace Random { if (20000 <= this->index2) { this->index2 = 0; } - return; } } diff --git a/src/OpenSHC/Random/RNG/populateRNG1040.cpp b/src/OpenSHC/Random/RNG/populateRNG1040.cpp index f3cae528..170f957f 100644 --- a/src/OpenSHC/Random/RNG/populateRNG1040.cpp +++ b/src/OpenSHC/Random/RNG/populateRNG1040.cpp @@ -8,9 +8,7 @@ namespace Random { // FUNCTION: STRONGHOLDCRUSADER 0x0046a760 void RNG::populateRNG1040() - { - MACRO_CALL(OpenSHC::Global_Func::SetRNGSeed)(this->seed); this->index2 = 0; this->index1 = 0; @@ -23,8 +21,6 @@ namespace Random { this->currentNumber1 = this->randomNumbers[this->index1]; this->index1 += 1; - - return; } } diff --git a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp index 6e84f93b..4d4643af 100644 --- a/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp +++ b/src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp @@ -8,12 +8,9 @@ namespace Random { // FUNCTION: STRONGHOLDCRUSADER 0x0046A740 void RNG::setTimeBasedSeed() - { - __time64_t time = MACRO_CALL(OpenSHC::OS_Func::__time64)((__time64_t*)0x0); this->seed = (int)time; - return; } }