mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2026-05-04 14:33:50 +00:00
10 lines
283 B
C++
10 lines
283 B
C++
#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);
|
|
}
|