1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-09 23:12:21 +05:30
polonium/include/MTPRNG.h

19 lines
314 B
C

#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 */