27unsigned long hlpd_hash(
unsigned char *str);
#define PATH_SEED_BUFSIZE
Definition game_core.h:1350
unsigned long hlpd_hash(unsigned char *str)
djb2 by Dan Bernstein.
Definition game_rng.c:55
bool check_seed(char buffer[PATH_SEED_BUFSIZE])
Checks the passed buffer as a seed.
Definition game_rng.c:93
void gen_random_seed(char buffer[PATH_SEED_BUFSIZE+1])
Sets the passed buffer up to be a random seed.
Definition game_rng.c:73
int hlpd_rand_docount(bool count)
Wraps over rand() to update G_RNG_ADVANCEMENTS if passed flag is true.
Definition game_rng.c:29
int hlpd_rand(void)
Wraps over hlpd_rand_docount() to update G_RNG_ADVANCEMENTS.
Definition game_rng.c:42