19 lines
402 B
C
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
|