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

The early days – Steve Wozniak – TEDxBerkeley [video]

https://www.youtube.com/watch?v=PwSyjz1off4
1•MilnerRoute•1m ago•0 comments

Turn a folder of PDFs into a live JSON API

https://parseapi.dev/blog/show-hn-folder-to-json-api
1•expertsanoy•1m ago•0 comments

AWS reportedly to tuck Grok into Bedrock, despite zero enterprise demand

https://www.theregister.com/ai-ml/2026/05/29/aws-reportedly-to-tuck-elon-musks-grok-into-bedrock-...
2•Jimmc414•4m ago•0 comments

10.000 Pro Prompts

https://www.reddit.com/u/Beat_to_the_kiss/s/OfyRoPBMzP
1•Beko2210•5m ago•0 comments

What Employers Need to Know About China's New Rules for Over-Age Employees

https://www.littler.com/news-analysis/asap/beyond-retirement-what-employers-need-know-about-china...
2•petethomas•7m ago•0 comments

Lab-grown brain-spinal cord shows 'irreversible' nerve damage may be reversed

https://www.cam.ac.uk/research/news/lab-grown-brain-spinal-cord-model-shows-irreversible-nerve-da...
1•hhs•7m ago•0 comments

21 days, $5K, 7 AI agents: how a non-programmer built a talent marketplace

https://www.bearhugrecruiting.com/startup-recruiting/bearhug-network-origin-story
1•kraigward•10m ago•0 comments

Pigeons navigate using magnetic sensors in their livers

https://www.mpg.de/26511515/pigeons-navigate-using-magnetic-sensors-in-their-livers
1•hhs•10m ago•0 comments

ATF's New Rules Would Make Gun Records Searchable

https://medium.com/@delschlangen_22694/atfs-new-rules-would-make-gun-records-searchable-that-s-th...
1•delschlangen•12m ago•0 comments

Show3D – Visual Science Education Platform

https://github.com/nyr-github/ai-3d-learning
1•godsbee•14m ago•0 comments

Paragraf Unwraps Graphene-Based FET Made at New Graphene Foundry

https://www.allaboutcircuits.com/news/paragraf-unwraps-graphene-based-fet-made-at-new-graphene-fo...
1•WaitWaitWha•15m ago•0 comments

MCP Is Dead

https://www.quandri.io/engineering-blog/mcp-is-dead
18•nadis•16m ago•5 comments

The record divide between corporate profits and worker pay

https://www.wsj.com/finance/stocks/the-record-divide-between-corporate-profits-and-worker-pay-ea4...
2•hhs•17m ago•0 comments

Three Trends from MLSys 2026

https://www.modular.com/blog/three-trends-from-mlsys-2026
2•matt_d•19m ago•0 comments

Emacs Bra Size Calculator

https://pulusound.fi/blog/emacs-bra-size-calculator/
2•birdculture•20m ago•0 comments

Why Peter Thiel Is Decamping to Argentina

https://www.nytimes.com/2026/05/28/world/americas/peter-thiel-argentina.html
1•cft•21m ago•0 comments

Microsoft NetMeeting changed Windows forever [video]

https://www.youtube.com/watch?v=qhay6VryyvE
2•nazgulsenpai•22m ago•0 comments

YIMBY data projects, between naps

https://maxmautner.com/2026/05/17/three-yimby-projects.html
1•jez•23m ago•0 comments

CA's AB 1856 Exempts Open Source but Expands Age-Gating

https://www.eff.org/deeplinks/2026/05/one-step-forward-two-steps-back-cas-ab-1856-exempts-open-so...
2•hn_acker•24m ago•1 comments

Why the Physics Underlying Life Is Fundamental and Computation Is Not

https://longnow.org/ideas/physics-life-complexity-assembly-theory/
1•leephillips•26m ago•0 comments

Show HN: Free activity calendar for schools, sports clubs, and organizations

https://freecal.eu/?lang=en
2•glenn_vc•29m ago•1 comments

Neuroevloutionary Wordle

https://sam-burns.com/series/neuroevolutionary-wordle/
1•OJFord•36m ago•0 comments

Why is ChatGPT referring to "hidden user memory"?

https://aiweekly.co/alerts/openai-deploys-silent-memory-pre-flight-in-chatgpt
3•D-Machine•38m ago•1 comments

Show HN: Open-source private home security camera system (end-to-end encryption)

https://github.com/secluso/core
12•arrdalan•40m ago•2 comments

Claude just discovered workflows. Charlie started there

https://charlielabs.ai/blog/claude-discovered-workflows-charlie-started-there-short/
2•briandoll•44m ago•0 comments

Show HN: Self Publish Studio

https://selfpublishstudio.com/
3•noahwardlow•48m ago•0 comments

SEC moves to repeal rule that companies report greenhouse emissions,climate risk

https://apnews.com/article/sec-climate-change-disclosure-rule-trump-d70ee730c8a124f6767ca327fe903846
4•petethomas•50m ago•0 comments

Free full BGP feed. IPv4 and IPv6

https://lukasz.bromirski.net/post/bgp-w-labie-3/
10•pm2222•51m ago•1 comments

What it takes to preserve floppy disks

https://spectrum.ieee.org/floppy-disk-data-preservation-archives
1•bananaboy•51m ago•0 comments

Flathub bans AI-generated apps and submissions

https://www.gamingonlinux.com/2026/05/flathub-moves-to-ban-nearly-all-apps-and-submissions-made-w...
3•Lihh27•53m ago•0 comments