2作者: the_othernet2 天前原帖
LoopMix128 是我为非加密任务编写的快速 C 伪随机数生成器(PRNG)。<p>GitHub(MIT):<a href="https://github.com/danielcota/LoopMix128">https://github.com/danielcota/LoopMix128</a><p>亮点:<p>* ~0.46 纳秒/值(GCC 11.4,-O3 -march=native),比 xoroshiro128++ 快 75%。<p>* 通过 TestU01 BigCrush 和 PractRand(32TB)测试。<p>* 保证周期为 2^128。<p>* 通过 Z3 SMT 求解器证明为单射(192 位状态);支持并行流。<p>* 核心仅需 stdint.h。<p>欢迎对设计、使用案例或进一步测试提供反馈。