Moved code and assets for the game to a seperate folder. Moved jansson and raylib to third_party.
This commit is contained in:
17
src/game/shared/random.h
Normal file
17
src/game/shared/random.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef RANDOM_H
|
||||
#define RANDOM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t seed;
|
||||
uint32_t state;
|
||||
} Random_Generator;
|
||||
|
||||
void random_init(Random_Generator *random_generator, uint32_t seed);
|
||||
|
||||
uint32_t random_u32(Random_Generator *random_generator);
|
||||
uint32_t random_u32_range(Random_Generator *random_generator, uint32_t min, uint32_t max);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user