refactor: review format and imports

This commit is contained in:
2026-05-11 07:53:28 +02:00
parent 8f0da378b0
commit cdc7df3e56
29 changed files with 30 additions and 37 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ static unsigned long rand(void) {
return (unsigned long)(x >> (22 + count));
}
void set_seed(unsigned long long seed) {
void rand_set_seed(unsigned long long seed) {
mcg_state = 2 * seed + 1;
(void)rand();
}
unsigned int rand_uint(const unsigned int max) {
return max == 0 ? 0 : (unsigned int)(rand() % max);
}
}