feat: sync with Whoa implementation

This commit is contained in:
VDm 2026-04-24 00:30:51 +04:00
parent 254ba545f5
commit 6a31dc3ea4
19 changed files with 988 additions and 774 deletions

View file

@ -0,0 +1,10 @@
#include "tempest/random/CRndSeed.hpp"
CRndSeed::CRndSeed(uint32_t seed) {
this->SetSeed(seed);
}
void CRndSeed::SetSeed(uint32_t seed) {
this->rndacc = seed;
this->rndvls = (4 * (seed % 0x3D)) | ((seed % 0x3B) << 10) | ((seed % 0x35) << 18) | ((seed % 0x2F) << 26);
}