refactor: review format and imports
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user