frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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?

Deep-diving robots help crack the mystery of Antarctica's vanishing sea ice

https://grist.org/oceans/deep-diving-robots-help-crack-the-mystery-of-antarcticas-vanishing-sea-ice/
1•Brajeshwar•9s ago•0 comments

The Greatest Documentary You've Never Heard Of – Tie Xi Qu《铁西区》 by Wang Bing [video]

https://www.youtube.com/watch?v=jvki-LbGCIY
1•CharlesW•3m ago•0 comments

"Should be no trouble at all for a driver to understand."

https://unsung.aresluna.org/should-be-no-trouble-at-all-for-a-driver-to-understand/
1•CharlesW•6m ago•0 comments

Bluesky experienced sophisticated DDoS attack which intensified through April 16

https://bsky.app/profile/bsky.app/post/3mjnlu7smsk2w
3•ck2•7m ago•1 comments

Sandboxes and Worktrees: My Secure Agentic AI Setup in 2026

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
1•wrxd•7m ago•0 comments

Analytics group: 40% of AI data center construction sites face possible delays

https://www.tomshardware.com/tech-industry/artificial-intelligence/analytics-group-signals-possib...
1•speckx•8m ago•0 comments

Clearwing – open-source Alternative to Anthropic Glasswing project

https://xcancel.com/QuixiAI/status/2044952124568527298
1•papascrubs•8m ago•0 comments

Moltbook, Gas Town and the Death of the Programmer Priest-Class

https://jchak.com/moltbook-gas-town-and-the-death-of-the-programmer-priest-class/
2•chakazula•8m ago•0 comments

Dome Systems – A system of control for AI agents

https://www.domesystems.ai/
1•madmax108•10m ago•0 comments

30 Years of "The Settlers 2": Veni, Vidi, Wusli

https://www.heise.de/en/background/30-Years-of-The-Settlers-2-Veni-Vidi-Wusli-11260484.html
1•doener•12m ago•0 comments

Stickers Against Germany

https://thediasporist.de/stickers-against-germany/
2•YeGoblynQueenne•12m ago•0 comments

Changes needed to deliver a transformation in biodiversity measurement

https://www.pnas.org/doi/10.1073/pnas.2519345123
2•PaulHoule•14m ago•0 comments

Reactionary Red-Lining of AI

https://www.chrbutler.com/reactionary-red-lining-of-ai
3•delaugust•14m ago•0 comments

Agent Wispr – Local dictation for terminals (CUDA, local model, cross-platform)

https://agentwispr.joshlehman.ca
1•JoshuaLehman•14m ago•0 comments

Show HN: How context engineering works, a runnable reference

https://github.com/outcomeops/context-engineering
2•linsys•15m ago•0 comments

As Agentic AI explodes, Amazon doubles down on MCP

https://thenewstack.io/amazon-aws-mcp-agentic/
3•Brajeshwar•15m ago•0 comments

Best practices for using Claude Opus 4.7 with Claude Code

https://claude.com/blog/best-practices-for-using-claude-opus-4-7-with-claude-code
3•MarlonPro•17m ago•0 comments

All 12 moonwalkers had "lunar hay fever" from dust smelling like gunpowder

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
2•cybermango•19m ago•0 comments

Dip 1053 – A Tale of Tuples

https://blog.dlang.org/2026/04/12/dip-1053-a-tale-of-tuples/
1•1980phipsi•19m ago•1 comments

SETI Home, but for AI

https://github.com/Agent-FM/agentfm-core
1•harshdoesdev•20m ago•1 comments

Fireside Friday

https://acoup.blog/2026/04/17/fireside-friday-april-17-2026/
1•Tomte•20m ago•0 comments

Century-Old Cleaning Chemical Linked to 500% Increased Risk of Parkinson's Desea

https://scitechdaily.com/century-old-cleaning-chemical-linked-to-500-increased-risk-of-parkinsons...
1•myth_drannon•20m ago•0 comments

FAA Scraps Civil and Criminal Penalties for Flying Drones Near ICE Vehicles

https://www.404media.co/faa-scraps-civil-and-criminal-penalties-for-flying-drones-near-ice-vehicles/
3•pavel_lishin•24m ago•1 comments

FireImg, A new tool for streamlining image generation

https://www.fireimg.com/demo/
1•mjnestor•25m ago•0 comments

Linux? In My Web Browser? – How to Bring Up the Linux Kernel

https://werwolv.net/posts/linux_in_my_browser/
1•WerWolv•26m ago•0 comments

Good Software Doesn't Double Check

https://www.boristhebrave.com/2026/04/17/good-software-doesnt-double-check/
1•speckx•28m ago•0 comments

Juggling by Numbers

https://www.numberphile.com/videos/juggling-by-numbers
1•ColinWright•30m ago•1 comments

A Visual History of Programming Languages

https://sheets.works/data-viz/every-language
2•birdculture•30m ago•0 comments

NeoGeo AES+: SNK announces reissue of retro console without emulation

https://www.heise.de/en/news/NeoGeo-AES-SNK-announces-reissue-of-retro-console-without-emulation-...
5•doener•31m ago•0 comments

The Case for Fixing Everything

https://www.technologyreview.com/2026/04/17/1135408/book-review-stewart-brand-fixing-everything-m...
2•Brajeshwar•31m ago•0 comments