Back to browse
GitHub Repository

A Replacement for the C++ std. RNG Lib that employs SIMD

2 starsPython

A Deployable Cross-Platform SIMD RNG Library for C++ (With Bnchmks)

by whisprer·Feb 14, 2026·1 point·0 comments

AI Analysis

MidShip It

Cross-platform SIMD RNG library with AVX2/AVX-512 paths and zero dependencies.

Strengths
  • AVX2/AVX-512 accelerated paths with graceful fallback
  • Zero external runtime dependencies
  • Cross-platform support (Windows, Linux, macOS)
Weaknesses
  • README contains placeholder text and missing CI workflow
  • SIMD RNG space already has established libraries like PCG and xoshiro
Target Audience

C++ developers needing high-performance RNG

Similar To

PCG · xoshiro · Random123

Post Description

I’ve built a fully cross-platform SIMD-accelerated C++ pseudo-random number generation library designed for real-world deployment (Windows, Linux, macOS).

Repository: https://github.com/whisprer/c-simd-rng-lib/

The goal was to solve a practical gap:

Most high-performance SIMD RNG implementations are either:

academic prototypes

single-architecture

non-portable

incomplete

or not packaged for real deployment

This library provides:

• AVX2 / AVX-512 accelerated paths (with graceful fallback) • Deterministic, reproducible streams • Clean API surface • Zero external runtime dependencies • Works across Win / Linux / macOS • Production-ready build setup

In bulk generation scenarios it significantly outperforms std::mt19937 and standard <random> engines, and benchmarks competitively (or faster) than other SIMD-enabled RNG libraries.

A separate benchmarking repository contains:

• Full comparison suite • Competing library benchmarks • Throughput numbers • Architectural breakdowns • Methodology + raw results

Benchmark repo: https://github.com/whisprer/benchmark/

The focus is high-throughput generation for simulations, Monte Carlo, procedural systems, and statistical workloads where large batches matter more than single draws.

Interested in feedback from folks working in HPC, simulation, game engines, or scientific computing.

Similar Projects