Files
fx/fx/random.h
T

19 lines
399 B
C
Raw Normal View History

2026-03-16 10:35:43 +00:00
#ifndef _FX_RANDOM_H_
#define _FX_RANDOM_H_
2024-10-24 21:33:05 +01:00
2026-05-02 21:01:17 +01:00
#include <fx/misc.h>
2024-10-24 21:33:05 +01:00
#include <stdint.h>
2026-03-16 10:35:43 +00:00
struct fx_random_ctx;
2024-10-24 21:33:05 +01:00
2026-03-16 10:35:43 +00:00
struct fx_random_algorithm {
2024-10-24 21:33:05 +01:00
const char *gen_name;
2026-05-02 21:01:17 +01:00
void (*gen_init)(struct fx_random_ctx *, unsigned long long seed);
uint64_t (*gen_getrand)(struct fx_random_ctx *);
2024-10-24 21:33:05 +01:00
};
2026-03-16 10:35:43 +00:00
FX_API uint64_t z__fx_platform_random_seed(void);
FX_API uint64_t z__fx_platform_random_seed_secure(void);
2024-10-24 21:33:05 +01:00
#endif