frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DualMix128 – A fast, simple PRNG passing PractRand (32TB) and BigCrush

https://github.com/the-othernet/DualMix128
5•the_othernet•1y ago
Hi HN,

I'd like to share DualMix128, a pseudo-random number generator I developed. It's written in C and achieves very high speed while maintaining strong statistical properties for non-cryptographic use.

GitHub (MIT License): https://github.com/the-othernet/DualMix128

Key points:

* *Fast:* Benchmarked at ~0.36 ns per 64-bit generation on GCC 11.4 (-O3 -march=native). This was over 2x faster than `xoroshiro128++` (~0.74 ns) and competitive with `wyrand` (~0.36 ns) in the same tests. (Benchmark code/results in repo).

* *Robust:* Passes the full TestU01 BigCrush suite and PractRand up to 32TB with no anomalies reported. (Test harnesses/logs in repo).

* *Simple Algorithm:* Uses a 128-bit state (two `uint64_t`) with simple mixing based on addition, XOR, rotation, and a final multiplication by the golden ratio constant.

* *C Implementation:* Minimal dependencies (`stdint.h` for core), straightforward C code.

This came out of exploring simple constructions for efficient PRNGs that still hold up under heavy statistical testing.

Curious to hear feedback on the design, performance, potential applications, or any weaknesses you might spot. Thanks!

Comments

thomaskoopman•1y ago
Very cool, fast and looks like it should vectorize too. Do you have a jump function for parallel seeding?

How did you come up with this, some number-theoretic basis or more experimental?

Cra Browser: open-source Arc replacement for macOS

https://github.com/VictorKildahl/cra
1•nateb2022•5m ago•0 comments

Show HN: DodoCD – CI/CD for PHP Shared Hosting

https://github.com/YohanSandun/dodocd
1•yohansandun•7m ago•0 comments

The Economic Paradox of AI-Generated Software

https://medium.com/@yassien/the-economic-paradox-of-ai-generated-software-93239b25bf1c
1•yassien•14m ago•0 comments

Decoding the Taalas HC1: A Quantitative Architecture Analysis

https://kevinyuan1.substack.com/p/decoding-the-taalas-hc1-a-quantitative
1•mofosyne•15m ago•0 comments

WeSesh: Pair Programming with Coding Agents

https://wesesh.com/
1•handfuloflight•17m ago•0 comments

Show HN: Diwali in threejs – find crackers and send wishes into a shared sky

https://virtualdiwali.com/
1•abhas9•18m ago•0 comments

Pell Puzzles – a novel grid deduction format

https://pell.achromath.com/
1•achromath•23m ago•0 comments

Show HN: Paste your MCP config, see what each server does at startup

https://mcp.brydge-ai.com
1•DevanshKontey•27m ago•0 comments

DMA-Latte: Expanding the Reach of DMA Offloads to Latency-Bound ML Communication

https://arxiv.org/abs/2511.06605
1•matt_d•28m ago•0 comments

Scientists reveal the staggering number of bat deaths at wind turbines

https://phys.org/news/2026-10-scientists-reveal-staggering-deaths-turbines.html
1•wglb•30m ago•2 comments

American military technology beyond your imagination

1•imheretolearn•32m ago•2 comments

HalachaBench

https://github.com/halachabench/halacha-bench-results
1•aizk•32m ago•0 comments

AI is programming's next abstraction. What should we teach?

https://lernerpython.com/2026/11/01/ai-programming-next-abstraction/
1•lumpa•33m ago•1 comments

A hidden brain rhythm challenges ideas about where consciousness comes from

https://medicalxpress.com/news/2026-10-hidden-brain-rhythm-ideas-consciousness.html
3•wglb•33m ago•1 comments

What does "verified memory safe" mean?

https://focs-lab.comp.nus.edu.sg/blog/memory-safety-audit/
1•matt_d•34m ago•0 comments

US Led Student List in Serbia Targets Russian Business and Trade in Serbia

https://www.ft.com/content/c478c8b6-789f-4253-8970-1244b93c1cce
1•secondary_op•36m ago•1 comments

Agentic AI Is Myth Set in Motion

https://braddelong.substack.com/p/crosspost-henry-farrell-agentic-ai
1•mellosouls•37m ago•0 comments

Hackers are running riot with AI. Its makers want to cash in

https://www.economist.com/business/2026/11/01/hackers-are-running-riot-with-ai-its-makers-want-to...
1•andsoitis•46m ago•0 comments

Contactless continuous guidance of matter using curved acoustic fields

https://www.pnas.org/doi/10.1073/pnas.2614959123
1•bookofjoe•58m ago•0 comments

QαT GPU-free universal low-power NP-hard solver

https://github.com/Quantumalphatech/Universal-Optimization-Engine-POC
1•QuantumAlpha•1h ago•0 comments

Kloak v0.3.0 Release

https://getkloak.io/docs/reference/release-notes
1•neo2006•1h ago•1 comments

Show HN: Rufous – Agent attuned to small models

https://rufous.chat
2•stephanfebs•1h ago•0 comments

Jesse Nickles, the guy behind SlickStack, is under a criminal arrest warrant

https://github.com/helenokoye/jesse-jacob-nickles-criminal-arrest-warrant
2•cleocole•1h ago•1 comments

Gas Station "Royal Honey" tests positive for opiates, Viagra component

https://www.youtube.com/watch?v=PHoBlbnA92A
2•tomcam•1h ago•0 comments

Proposed data centre would release 23 Hiroshima-sized atomic bombs of energy/day

https://www.cbc.ca/news/canada/edmonton/wonder-valley-slcn-court-physicist-9.7403677
2•BiraIgnacio•1h ago•0 comments

Postmortem on Claude Code Cursor extension hack

https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cur...
4•soundworlds•1h ago•1 comments

Ex-o2 FRITZ Box 6660 Cable: enabling LAN 1 as WAN via a bootloader variable

https://www.alpersaritas.com/writing/fritzbox-6660-lan1-wan/
2•lprsrts•1h ago•0 comments

Sub-microsecond SEC 15c3-5 risk checks on AWS F2 via FPGA MMIO

https://github.com/joeiko3424-svg/oikonomia-benchmarks
1•oikonomiaarchit•1h ago•2 comments

Why Agent Memory Benchmarks Need a Reproducible Evaluation Pipeline

https://x.com/AgentMemoryL/
1•SndOfViento•1h ago•0 comments

Trump Demands a Cut of Alina Habba's $50M Pardon Deal

https://newrepublic.com/post/217360/donald-trump-alina-habba-50-million-pardon
10•techlover14159•1h ago•5 comments