18 lines
262 B
C
18 lines
262 B
C
#ifndef RNG_H
|
|
#define RNG_H
|
|
|
|
#include "vec3.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t state;
|
|
} rng_t;
|
|
|
|
rng_t rng_init(unsigned seed);
|
|
double rng_canon(rng_t *rng);
|
|
vec3_t rng_vec3(rng_t *rng);
|
|
vec3_t rng_gaussian_xy(rng_t *rng, double stddev);
|
|
|
|
#endif
|