Files
fx/fx/random.h
T
2026-05-02 21:01:17 +01:00

19 lines
399 B
C

#ifndef _FX_RANDOM_H_
#define _FX_RANDOM_H_
#include <fx/misc.h>
#include <stdint.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