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?

In China, the AI bubble has burst

https://www.reuters.com/world/china/china-ai-bubble-has-already-burst-2026-10-26/
1•porridgeraisin•10s ago•0 comments

Show HN: Git-dupe – Version private files alongside a public Git repo

https://github.com/BrianWeiHaoMa/git-dupe/tree/main
1•WayHow•11s ago•0 comments

One week on the APNIC honeynet: 99,000 IP addresses and 173M events

https://blog.apnic.net/2026/10/26/one-week-on-the-apnic-honeynet-99000-ip-addresses-and-173-milli...
1•weinzierl•1m ago•0 comments

Vulnocalypse: Live tracker of new security vulnerabilities

https://vulnocalypse.com/
1•simonpure•1m ago•0 comments

Readers Prefer AI Trained on Copyrighted Books over Expert Human Writers

https://arxiv.org/abs/2510.13939
1•Anon84•2m ago•0 comments

Snowflake Adaptive Warehouses cut MERGE write amplification [video]

https://www.youtube.com/shorts/LeAS6TR-dxA
1•yanivleven•2m ago•0 comments

An attempt at making a Visual Place Recognition system work on Lunar surfaces

https://www.lunarsim.org/research/
1•RonInDune•2m ago•1 comments

Show HN: On Air – Press a key and a reaction plays on your webcam in calls

https://forgot.dev/on-air
1•petarjs•2m ago•0 comments

Pixtorium – a native AI image editor, not a Photoshop clone

https://pixtorium.com/
1•siberiankot•3m ago•0 comments

Microsoft is offering buyouts to around 60k employees

https://www.businessinsider.com/microsoft-is-offering-buyouts-read-the-memo-2026-10
4•nycdatasci•3m ago•0 comments

Ask HN: Who is doing distillation or fine tuning?

2•mrburton•4m ago•1 comments

DuckDuckGo Donates $25,000 to The Perl and Raku Foundation v2026

https://www.perl.com/article/duckduckgo-donates-25-000-to-the-perl-and-raku-foundation-v2026/
2•oalders•5m ago•0 comments

Moatless – App stores are dead. Buy the code

https://moatless.store/blog/announcing-moatless
5•lawik•7m ago•1 comments

The Case Against Business School

https://www.nytimes.com/2026/10/18/opinion/business-school-mba-harvard-cornell-cambridge.html
1•yarapavan•8m ago•0 comments

Bad Habits in Web Development We Should Avoid

https://blog.ifirestone.dev/bad-habits-in-web-development-we-should-avoid/
1•theanonymousone•8m ago•0 comments

Chip Wars Update: China blows up ASML's supply chain for EUV machines [video]

https://www.youtube.com/watch?v=sPjPaHmQ8JE
1•xbmcuser•8m ago•0 comments

Microsoft to Trim Workforce with Buyout Offers for 60k Staff

https://www.bloomberg.com/news/articles/2026-10-26/microsoft-to-offer-buyouts-to-60-000-workers-i...
4•helsinkiandrew•9m ago•1 comments

Show HN: Cues Video Editor

https://cues.app
1•chaitanyapandit•10m ago•0 comments

Why Just Passwords?

https://pketh.org/why-just-passwords.html
1•surprisetalk•11m ago•0 comments

Geospatial Wikidata Dataset Connects OpenStreetMap and Wikimedia for Re

https://enterprise.wikimedia.com/blog/geospatial-wikidata-dataset/
2•chippy•11m ago•0 comments

Heavenly delights of hashing numbers under EQUALP

https://turtleware.eu/posts/Heavenly-delights-of-hashing-numbers-under-EQUALP.html
1•jackdaniel•12m ago•1 comments

Show HN: Give one context across all your agents via MCP

https://make0.ai/
1•heysrb•12m ago•1 comments

Show HN: RCE in Atlantis

https://medium.com/@Vulnetic-CEO/dismissed-approval-to-rce-unreviewed-terraform-apply-in-atlantis...
2•danieltk76•13m ago•0 comments

Show HN: Cfnrain, a community fork of AWS's archived CloudFormation CLI rain

https://github.com/awesome-foundation/cfnrain
1•allixsenos•13m ago•0 comments

Show HN: Offline PDF Desk – one HTML file, redacts and merges PDFs offline

https://dowla0.gumroad.com/l/offline-pdf-desk
1•Vladenik•14m ago•0 comments

Supply chain security for open source maintainers

https://safedep.io/oss/
2•tech_solver•14m ago•0 comments

Empires of AI

https://www.foreignaffairs.com/china/empires-artificial-intelligence-niall-ferguson-eric-schmidt
1•simonebrunozzi•14m ago•0 comments

Microsoft offers mass buyouts for roughly a quarter of its workforce

https://www.seattletimes.com/business/microsoft/microsoft-offers-mass-buyouts-for-roughly-a-quart...
22•doctorzook•15m ago•15 comments

Eric Bauza, Voice of Bugs Bunny and Daffy Duck, Dies at 46

https://www.washingtonpost.com/nation/2026/10/26/eric-bauza-voice-looney-tunes-characters-bugs-bu...
5•bookofjoe•17m ago•2 comments

Lead Harbour, find people asking to buy what your online store sells

https://leadharbour.tech/
2•raysyarov•17m ago•0 comments