This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/chaos/xorshift.h

15 lines
173 B
C
Raw Permalink Normal View History

#pragma once
#include <stdint.h>
uint64_t
chaos_xorshift(
uint64_t seed
);
float
chaos_xorshift_fract(
uint64_t seed,
uint64_t* next_seed /* NULLABLE */
);