Udp
This commit is contained in:
committed by
Matthew McClaskey
parent
ba902f8194
commit
3b40a92548
14
common/network/webudp/WuRng.h
Normal file
14
common/network/webudp/WuRng.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// http://xoroshiro.di.unimi.it/xoroshiro128plus.c
|
||||
struct WuRngState {
|
||||
uint64_t s[2];
|
||||
};
|
||||
|
||||
uint64_t WuRandomU64();
|
||||
uint32_t WuRandomU32();
|
||||
|
||||
void WuRandomString(char* out, size_t length);
|
||||
Reference in New Issue
Block a user