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?

Ask HN: What task manager do you use? What do you miss on them?

1•KlyX•2m ago•0 comments

Colyseus – Real-Time Multiplayer Framework for Node.js

https://colyseus.io/
1•eustoria•2m ago•0 comments

Show HN: I spent 10 months building a Markdown editor for Mac, iOS and web

https://www.markdown.beauty/
2•thiagoperes•3m ago•0 comments

Instinct and Intelligence (1929)

https://archive.org/details/trent_0116400203752
1•Eridanus2•3m ago•0 comments

Visitors – Privacy-friendly Google Analytics alternative

https://visitors.now
1•eustoria•3m ago•0 comments

Phish.net History in Screenshots

https://phish.net/page/phishnet-screenshots
1•eustoria•4m ago•0 comments

Facebook liable for over 43M violations of consumer protection law

https://fortune.com/2026/09/26/facebook-liable-violations-new-mexico-consumer-protection-lawand-m...
1•jthoward64•5m ago•0 comments

Show HN: AlphaPublish – turn short video into a stable web embed

https://alphapublish.com/
1•robot1996•12m ago•0 comments

The secretive cyberweapons company that won over Israel's intelligence elite

https://irpimedia.irpi.eu/en-inside-the-secretive-cyberweapons-company-that-won-over-israels-inte...
1•campuscodi•14m ago•0 comments

Ten Lines of Code That Changed My World

https://pixelambacht.nl/2026/ten-lines-of-code/
2•dimonomid•14m ago•0 comments

EasyActions – run GitHub Actions across an organization

https://github.com/Mask-AI-FR/EasyAction
1•maskaifr•15m ago•0 comments

Show HN: Privacy first local backup tool for Notion

https://notionmanager.com/
2•bingfeng•15m ago•0 comments

Replacing the old battery on rechargeable bike lights

https://jvns.ca/blog/2026/09/27/replacing-the-old-battery-on-rechargeable-bike-lights/
2•surprisetalk•17m ago•0 comments

Valve Introduces Pyrowave Video Codec in Beta for Low Latency Streaming

https://www.phoronix.com/news/Valve-Steam-Beta-Pyrowave
1•mococa•19m ago•1 comments

Investors Are Betting on Devices That Connect the Brain to Computers

https://www.nytimes.com/2026/09/24/business/dealbook/precision-neuroscience-brain-bill-ackman.html
1•bookofjoe•20m ago•1 comments

Optimistic UI is an architectural decision, not a minor UX tweak

https://rulr.dev/blog/optimistic-ui-is-an-architectural-decision/
1•raffi001•22m ago•0 comments

Your AI Agent Forgot Half of What You Told It

https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/
1•Anon84•32m ago•0 comments

Show HN: Voxa – Bilingual voice dictation for Omarchy, bring your own API key

https://github.com/lifez/voxa
1•lifez•36m ago•0 comments

Germany needs 63k people to pay its pensions, 5x Japan, 4x Sweden per pensioner

https://professionlens.com/research/germany-needs-63000-people-to-pay-its-pensions-5x-japan-per-p...
2•jakobgreenfeld•38m ago•0 comments

How long does a database table live?

https://blog.mcdview.dev/en/how-long-does-a-database-table-live/
1•PatuDev•38m ago•0 comments

Job Titles Are Out. Now We're All 'Members of the Technical Staff.'

https://www.nytimes.com/2026/09/27/business/members-of-technical-staff-artificial-intelligence.html
2•sbulaev•40m ago•0 comments

L'implant cochléaire entre technique, éthique et politique

https://droit.cairn.info/article/GRIEF_161_0036/pdf?lang=fr
1•ouzb64ty•41m ago•0 comments

State of Pandemic Early Warning

https://www.jefftk.com/p/state-of-pandemic-early-warning
1•torutofu•43m ago•0 comments

Human-AI partnerships are for alignment, not capability

https://www.seangoedecke.com/human-ai-partnerships-are-for-alignment-not-capability/
1•sylvainkalache•43m ago•0 comments

MarkyDown: HTML to Markdown on the fly. Scrape, convert or negotiate by header

https://github.com/ulrischa/MarkyDown
1•ulrischa•44m ago•0 comments

Building a app for a hackathon for hackathon winners (Sweden 2026)

https://sidequest-snowy-seven.vercel.app/
1•Nikoroses•47m ago•0 comments

Pig: Pi in Go, a port that plans on keeping up

https://developer.hpe.com/blog/meet-pig-pi-in-go-a-port-that-plans-on-keeping-up/
3•tnspacetime•48m ago•0 comments

AI Doesn't Need to Invent a Supervirus to Be Dangerous

https://liorzi.substack.com/p/ai-doesnt-need-to-invent-a-supervirus
2•Protostome•50m ago•0 comments

PolyXOR128: A 128-bit universal hash function

https://github.com/orlp/polyxor
2•g0xA52A2A•52m ago•0 comments

Show HN: Peas and Pans – meal planning software for nutrition coaches

https://peasandpans.com/
2•ssnxd•54m ago•0 comments