mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-26 23:20:22 +05:30
19 lines
314 B
C
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 */
|