pcg-c
pcg-c copied to clipboard
PCG — C Implementation
A lot of projects are using CMake now for portability and other reasons. For `pcg-cpp`, an issue with further rationale and pull request exists here: https://github.com/imneme/pcg-cpp/issues/43 I would love to...
When a function such as pcg_setseq_64_xsh_rr_32_boundedrand_r is called with a bound of 0 and bound is the denominator of a modulus operation, the result is undefined behavior -- possibly a...
We should probably use git to tag a release, and then provide 2 links on the website: (1) zipball for the tagged release (something like https://help.github.com/articles/linking-to-releases/) and (2) zipball for...
Added meson project files, maintaining compilation/linking flag consistency with base Makefile (exception of new addition of -flto by default) Included tests from ./test-high and ./test-low as Meson tests Edited README.md...
pcg_variants.h:158:49: warning: implicit conversion loses integer precision: 'unsigned long long' to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32] return pcg_rotr_32(((state >> 18u) ^ state) >> 27u, state >> 59u); pcg-c/extras/entropy.c:76:36: warning: comparison...
I noticed that the CPP version (line 1617 in pcg_random.hpp) of this library has extended generation schemes allowing arbitrary periods (section 7.1 in the paper). Could we add this to...
The following warning is fixed. ``` In file included from pcg-global-32.c:31: pcg-global-32.c: In function 'pcg32_advance': ../include/pcg_variants.h:2393:41: warning: ISO C forbids 'return' with expression, in function returning void [-Wpedantic] 2393 |...
Hello, This is a copy of https://github.com/imneme/pcg-cpp/pull/87 for your convenience to keep the C port of this library up to date, which is the version I am interested in. In...
This popped up on my radar due to a build failure on NetBSD/powerpc. This platform does not have native support for 128-bit integer operations. ``` gcc -O2 -D_FORTIFY_SOURCE=2 -O3 -std=c99...