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?

Emotional Well-Being on ChatGPT

https://arxiv.org/abs/2504.03888
1•lasky•2m ago•1 comments

The next AI breakout will come from a services firm

https://www.introspection.dev/manifesto
2•asasidh•2m ago•0 comments

Claude Generated Summary on Sri Lanka Batalanda Commission of Inquiry

https://claude.ai/artifact/4xzcAXCXwFTeMSopXhJjvk
1•kharon•5m ago•0 comments

Owed a billion dollars in Nvidia stock

https://colo.to/nvidia-stock-narrative.html
2•Eric_Gullichsen•6m ago•0 comments

Fool's Expertise

https://bcantrill.dtrace.org/2026/09/27/fools-expertise/
1•elffjs•6m ago•0 comments

Internal Weather

https://alearningaday.blog/2026/09/26/internal-weather-3/
2•JumpCrisscross•13m ago•0 comments

When Back-to-School Shopping Includes Bulletproof Backpacks

https://www.nytimes.com/interactive/2026/09/21/magazine/shooting-fears-school-equipment.html
1•bookofjoe•15m ago•1 comments

Comet SWAN26Q – The unconfirmed Scout object warrants monitoring, not concern

https://www.astrophyzix.com/2026/09/SWAN26Q-NEOCP-Report.html
3•JEOFFEZZ•21m ago•0 comments

Goodbye to the Hard Parts That Never Mattered

https://jakegoldsborough.com/blog/2026/goodbye-to-the-hard-parts-that-never-mattered/
2•JumpCrisscross•21m ago•0 comments

Show HN: I made a tool that turns Jetpack Compose Previews to embeddable scripts

https://composables.com/
1•alexstyl•23m ago•0 comments

OpenRig: Multi-Agent Harness

https://github.com/mvschwarz/openrig
2•handfuloflight•23m ago•0 comments

Behold the pawpaw, the tropical 'alien banana' that grows right here in Canada

https://www.cbc.ca/radio/thecurrent/pawpaw-tropical-fruit-canada-9.7356882
3•BiraIgnacio•24m ago•0 comments

OpenAI pauses top-model work after AI bypasses internet safeguards [video]

https://www.youtube.com/watch?v=a1qnCu1t9hI
1•kbn•24m ago•0 comments

PostgreSQL 19's "scary patch contest"

https://lwn.net/Articles/1092003/
1•pykello•25m ago•0 comments

(Book) When It Goes Wrong: What Angels and Founders Do Next

https://susanjmontgomery.substack.com/p/when-it-goes-wrong-what-angels-and
2•mgav•27m ago•0 comments

Show HN: Guess which repository has more GitHub stars

https://higherlower.focuslab.pk/
1•alexander2002•28m ago•0 comments

In preparation for Wow Forever, here is a guided tour of Warcraft

https://ryeceps.github.io/azeroth-chronicle/
2•carnufex•31m ago•0 comments

Show HN: MCPersist – Minecraft worlds that keep running after the host logs off

https://github.com/5TN1rcZRS79VAEFuUCRB/MCPersist
2•CMboSqdTACiEX27•32m ago•0 comments

Drop Your Startup Ideas

1•KinetiNode•35m ago•0 comments

Show HN: Panda, the world's first personal AI computer

https://pandax1.com
4•moezee1•36m ago•4 comments

How Is Inventing the Renaissance an SFF-Related Work?

https://www.exurbe.com/how-is-inventing-the-renaissance-an-sff-related-work/
2•mooreds•37m ago•0 comments

Packing Binary Is Fun

https://hereticpleb.vercel.app/blog/packing-binary-is-fun-actually
1•BurnerBurner•37m ago•0 comments

I killed every subscription business model in the market

https://vosu.ai/pricing
2•nafisfaysal•38m ago•1 comments

Writing the same book three times [audio]

https://www.swarmia.com/podcast/build-third-edition/
1•mooreds•38m ago•0 comments

As A.I. Makes Law Firms More Efficient, Clients Ask: 'Where's My Discount?'

https://www.nytimes.com/2026/09/26/business/dealbook/ai-law-discount-billable-hour.html
7•mooreds•41m ago•0 comments

"The refrigerator is dead": Samsung's AI fridges shut down after update

https://www.notebookcheck.net/The-refrigerator-is-dead-Samsung-s-AI-fridges-shut-down-after-updat...
4•RachelF•42m ago•0 comments

Research finds 485 chemicals in US pesticide products linked to breast cancer

https://www.theguardian.com/us-news/2026/sep/26/breast-cancer-us-pesticide-products
18•Teever•43m ago•0 comments

AI is not an alien, it's our offspring: Reframing the alignment problem

https://sovereignintelligence1313mhz.substack.com/p/the-titan-dilemma
2•sovereignai•46m ago•3 comments

Five arrested as UK police investigate major incident near RAF Fairford

https://www.bbc.co.uk/news/articles/cqrm99mm9l84o
2•FridayoLeary•47m ago•0 comments

Was Silent Reading Unusual During Augustine's Time?

https://www.historyofinformation.com/detail.php?entryid=4341
2•ryanscio•48m ago•0 comments