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

Rust re-implementations violate Chesterton's Fence unless done by author

https://fs.blog/chestertons-fence/
1•danielfalbo•19s ago•0 comments

Sites with Dumb Password Rules

https://dumbpasswordrules.com/sites-list/
1•Fiveplus•38s ago•0 comments

Inventor of Little Arrow That Tells You What Side the Fuel Filler Is on Has Died

https://www.jalopnik.com/2061179/inventor-little-arrow-what-side-fuel-filler-is-on-dies/
1•cf100clunk•2m ago•0 comments

Show HN: Year in Review – Breakout with your GitHub contributions

https://github.com/fchimpan/gh-kusa-breaker
1•r4mimu•7m ago•0 comments

Memelang: Token-efficient LLM query language

https://arxiv.org/abs/2512.17967
2•bri-holt•8m ago•0 comments

Show HN: LLM Sorter – Python package to sort lists of items using LLM calls

https://github.com/kalolad1/llm-sorter
1•dkalola•9m ago•0 comments

Show HN: SQL Data Builder – Visual schema and query builder

https://vps-commander.com/products/sql-data-builder/
1•tkrenn06•9m ago•0 comments

There has been NO warming in Antarctica since 1979

https://www.nature.com/articles/s41597-025-05175-6
2•bilsbie•9m ago•0 comments

Readeck: FOSS, self-hosted Instapaper/Pocket alternative

https://readeck.org/en/
1•rpgbr•10m ago•0 comments

How iRobot Lost Its Market Dominance Despite Leading the Robot Vacuum Industry?

https://xthe.com/news/how-irobot-lost-its-market-dominance/
1•xthe•11m ago•1 comments

The Discoveries in 2025

https://www.bbc.com/news/articles/c3v17ylvn57o
1•saikatsg•11m ago•0 comments

JustHTML is an example of vibe engineering in action

https://simonwillison.net/2025/Dec/14/justhtml/
1•nunodonato•13m ago•0 comments

The TTY Layer: The Past, Present, and Future [video]

https://www.youtube.com/watch?v=g4sZUBS57OQ
2•todsacerdoti•15m ago•0 comments

Zen-GC – policy-driven K8s garbage collection for automated cleanup

https://github.com/kube-zen/zen-gc
1•kubezen•17m ago•1 comments

I built a Redis clone in Go purely by vibe, and it's 1.9x faster

https://github.com/wutlu/boltcache
1•spotlayn•17m ago•0 comments

Tuxmate: The Missing Bulk App Installer for Linux

https://github.com/abusoww/tuxmate
1•thunderbong•18m ago•0 comments

Show HN: JJK Domain Expansions

https://jjk.ss.my/
1•natsu90•18m ago•0 comments

Examples of things that people with average computer literacy can "just" do

https://infosec.exchange/@0xabad1dea/114789211460000053
1•DoctorOW•19m ago•0 comments

Domer AI: All-in-One Image and Video Generator Tool

https://domer.io
1•duanhjlt•22m ago•0 comments

Taiwan rattled by 7.0 magnitude quake, no major damage reported

https://www.reuters.com/business/environment/taiwan-rattled-by-70-magnitude-quake-2025-12-27/
1•keepamovin•24m ago•0 comments

Show HN: Goodreads Analyzer – AI roast and book recs from your reading history

https://goodreads-analyst.vercel.app/
1•DoingSomeThings•26m ago•1 comments

General strike cripples Bolivia over so-called "Gasolinazo"

https://en.mercopress.com/2025/12/23/general-strike-cripples-bolivia-over-so-called-gasolinazo
2•clanky•28m ago•2 comments

Eilmeldung, a TUI RSS Reader

https://github.com/christo-auer/eilmeldung
3•christo-auer•38m ago•1 comments

Ask HN: STB libraries make your work easier or you makes no difference?

2•DenisDolya•38m ago•0 comments

Misspelled learning center receives $4M

https://www.foxnews.com/politics/misspelled-learning-center-no-children-inside-emmer-presses-walz...
2•silexia•38m ago•0 comments

So I started cloning the Wii U gamepad [video]

https://www.youtube.com/watch?v=jlbcKuDEBw8
3•ingve•39m ago•0 comments

Show HN: I built a MCP Server for stock analysis (9% alpha vs. VOO)

https://github.com/danielrz/investbuddy-mcp-server
2•investbuddy•40m ago•1 comments

A Century of Noether's Theorem

https://arxiv.org/abs/1902.01989
7•fanf2•41m ago•0 comments

New York to require social media platforms to display mental health warnings

https://www.reuters.com/legal/litigation/new-york-require-social-media-platforms-display-mental-h...
9•pseudolus•41m ago•8 comments

Claude Life Assistant: Personal accountability coach in your filesystem

https://github.com/lout33/claude_life_assistant
1•lout332•46m ago•0 comments