18 lines
314 B
C
18 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 */
|