TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24542 21
Maintaining the Legacy: Total-Random takes over pcg-cpp maintenance (Support for Win ARM64, MSVC fixes, and Modern C++)

Hi everyone,

Like many of you, we consider the PCG (Permuted Congruential Generator) family of PRNGs by Prof. Melissa O'Neill to be the gold standard for performance and statistical quality. However, the original pcg-cpp repository has been inactive for over 3 years, leaving many critical community-submitted patches unmerged.

To ensure this vital library remains usable in modern development environments, we have formed Total-Random, a community-led organization dedicated to maintaining and modernizing legacy RNG libraries.

We have just released our first stable version of the Total-Random/pcg-cpp fork, which includes:

Windows ARM64 Support: Integrated fixes for ARM64 architecture (thanks to Demonese/LuaSTG).

MSVC Compatibility: Resolved C2678 ambiguous operator errors and other MSVC-specific build failures.

Empty Base Class Optimization (EBCO): Enabled __declspec(empty_bases) for MSVC to ensure optimal memory layout, matching GCC/Clang behavior.

Robust 128-bit Fallback: Improved handling for platforms lacking native __uint128_t support.

Improved unxorshift: Replaced the recursive implementation with a more efficient iterative doubling loop to prevent stack issues and improve clarity.

Our goal is to keep the library header-only, bit-for-bit compatible with the original algorithm, and ready for C++11/17/20/23.

Community Recognition: We are honored to have received early attention and feedback from researchers in the field, including Ben Haller (@bhaller) from Cornell University. You can see the community discussion regarding our transition here:https://github.com/imneme/pcg-cpp/issues/106

Check us out on GitHub: Total-Random/pcg-cpp



We welcome PRs, issues, and feedback from the community. Let's keep the best PRNG alive and kicking!



Best regards, The Total-Random Team

https://redd.it/1pt25rg
@r_cpp
GitHub Continuing the Journey: A Community-Maintained Fork for Modern C++ and Platform Support · Issue #106 · imneme/pcg-cpp Dear Professor O'Neill (@imneme) and the PCG community, First of all, thank you for the incredible work on the PCG family of generators. It has been a cornerstone for high-quality random number...
More from @r_cpp
  1. Oct 8, 2026Profiles for simplicity and guarantees - Bjarne Stroustrup - CppCon 2026 https://youtu.be/…
  2. Oct 8, 2026How to Fix autoconf-style Configuration Probing https://build2.org/blog/fix-autoconf.xhtml…
  3. Oct 8, 2026owl – a header-only C++23 HTTP framework where route patterns and handler extractors are c…
  4. Oct 8, 2026Removed by Reddit Removed by Reddit on account of violating the [content policy. ] https:/…
  5. Oct 8, 2026Is there a way to search across all P and N papers throughout standardization history? It…
  6. Oct 8, 2026CppCast Episode 412 : Safety and Interoperability with Rust and C++ https://cppcast.com/sa…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →