mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2026-05-05 23:03:52 +00:00
feat: sync with Whoa implementation
This commit is contained in:
parent
254ba545f5
commit
6a31dc3ea4
19 changed files with 988 additions and 774 deletions
10
tempest/random/CRndSeed.cpp
Normal file
10
tempest/random/CRndSeed.cpp
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue