aboutsummaryrefslogtreecommitdiff
path: root/src/base/rng/internal.h
blob: 9cf5f41c51f3928fb438adb566a4d5743b44d5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <u.h>
#include <base.h>

#define rol64(x, k) ((x) << (k) | ((x) >> (64-(k))))

typedef struct Rng
{
    uint64 s[4];
} Rng;

typedef struct Mix
{
	uint64 s;
} Mix;


extern Rng rngยทRNG;