Files
fx/core/random.h
2026-03-16 10:35:43 +00:00

19 lines
402 B
C

#ifndef _FX_RANDOM_H_
#define _FX_RANDOM_H_
#include <stdint.h>
#include <fx/core/misc.h>
struct fx_random_ctx;
struct fx_random_algorithm {
const char *gen_name;
void(*gen_init)(struct fx_random_ctx *, unsigned long long seed);
uint64_t(*gen_getrand)(struct fx_random_ctx *);
};
FX_API uint64_t z__fx_platform_random_seed(void);
FX_API uint64_t z__fx_platform_random_seed_secure(void);
#endif