Project Bias - A formally verified, bias-free CSPRNG conversion engine in Ada/SPARK
Hi everyone, I wanted to share a project I've been hacking on: an optimized engine designed to eliminate modulo bias when mapping raw cryptographic streams into custom alphabets. Key bits: * SPARK Level 4 (Formal Verification) - Fully proven to guarantee AoRTE and functional correctness. * Built using the modern Windows ProcessPrng API as primary entropy via Interfaces.C, with BCryptGenRandom as fallback. * Toolchain compatible with GNAT Pro 2021 and the latest Alire community suite. I just stressed-tested the uniformity mapping with a massive 1 Terabyte run (over 1.01 trillion chars across a 69-char alphabet) and the statistical distribution remains perfectly flat (0.00% percent deviation)
…