1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-04 20:49:53 +05:30
polonium/include/MTPRNG.h

19 lines
314 B
C
Raw Normal View History

2024-07-07 03:18:23 +05:30
#ifndef _MTPRNG_H
#define _MTPRNG_H
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"
#include "random_seed.h"
void mt_seed(uint32_t* seed_ptr);
uint32_t mt_next(void);
uint32_t mt_randint(uint32_t min, uint32_t max);
#define mt_randomize() (mt_seed(NULL))
#endif /* _MTPRNG_H */