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?

Iran court fines US $22B over Woman, Life, Freedom protests

https://www.iranintl.com/en/202512029239
1•pinewurst•1m ago•0 comments

Reversing IDA's Lumina Protocol

https://stack.int.mov/reversing-idas-lumina-protocol/
1•19h•2m ago•0 comments

China's Robot Training Factory: Where Humanoids Learn to Work

https://www.sixthtone.com/news/1017920
1•rguiscard•14m ago•0 comments

Ask HN: Why don't buildings have dry warm up rooms for your laptop in winter?

1•amichail•15m ago•3 comments

Google will start building data centers in space, powered by the sun, in 2027

https://www.businessinsider.com/google-project-suncatcher-sundar-pichai-data-centers-space-solar-...
2•cpeterso•15m ago•3 comments

Show HN: Cupertino – MCP server giving Claude offline Apple documentation

https://aleahim.com/blog/cupertino-ecosystem/
3•mihaela•20m ago•0 comments

Iranian MPs decry lack of observance of female dress code

https://www.newarab.com/news/iranian-mps-decry-lack-observance-female-dress-code
3•mhb•24m ago•1 comments

Francis Ford Coppola, Who Says He's 'Broke,' Is Selling a $1M Watch

https://www.nytimes.com/2025/10/23/fashion/francis-ford-coppola-watch-auction.html
1•handfuloflight•27m ago•0 comments

We Are Living in a Bifurcated Economy

https://amitsdeepdives.substack.com/p/we-are-living-in-a-bifurcated-economy
2•mhb•30m ago•0 comments

AI Needs to Feel Pain [video]

https://www.youtube.com/watch?v=fKf6Kl5TMc0
1•xqcgrek2•33m ago•0 comments

Heiliger Dankgesang: Reflections on Claude Opus 4.5

https://www.hyperdimensional.co/p/heiliger-dankgesang
1•maxutility•34m ago•0 comments

MarathonOS: A spiritual successor to BlackBerry10 using Qt6 and PostmarketOS

https://marathonos.xyz/
2•pat64•37m ago•0 comments

What's changing for under 16s and parents on YouTube in Australia

https://blog.google/intl/en-au/products/whats-changing-on-youtube-in-australia/
1•decimalenough•39m ago•0 comments

Anthropic Could Go Public in 2026

https://www.ft.com/content/3254fa30-5bdb-4c30-8560-7cd7ebbefc5f
3•ls612•46m ago•0 comments

Show HN: Dependency-aware context management for LLM coding workflows

https://github.com/Mohamedsaleh14/ContextGit
1•saleh_•48m ago•0 comments

Adopt all your ubiquity unifi devices in one shot

https://github.com/jasonroland/auto-unifi-adopt-rust-1SYSTEMSinstallation
4•teachmetolearn•50m ago•1 comments

Big Tech's 'Spend Little, Earn Lots' Formula Is Threatened by AI

https://www.bloomberg.com/news/articles/2025-12-02/big-tech-s-spend-little-earn-lots-formula-is-t...
2•1vuio0pswjnm7•51m ago•0 comments

Nuke Snake, the classic Mac shareware game

https://nukesnake.com/
2•gaws•52m ago•0 comments

SF's Claude Passed Away

https://www.kron4.com/news/bay-area/albino-alligator-claude-passes/
2•wferrell•58m ago•2 comments

TikTok and LinkedIn Face Investigations by Irish Media Regulator

https://www.bloomberg.com/news/articles/2025-12-02/tiktok-and-linkedin-face-investigations-by-iri...
1•1vuio0pswjnm7•59m ago•0 comments

Non-Lexical Bindings

https://www.sheeeeeeeep.art/lang-things-current-object.html
1•panic•1h ago•0 comments

Can we build WeChat-like Mini Apps using open web standards?

https://dmathewwws.com/antler-an-irl-browser
1•brazukadev•1h ago•0 comments

Proposing a solution for recording intent by reimagining version control [video]

https://www.youtube.com/watch?v=IFbj-P0D1AQ
1•ch3coohlink•1h ago•0 comments

Rand Paul: My Proposal Will Improve Health Care and Lower Costs

https://www.newsweek.com/rand-paul-my-proposal-will-improve-health-care-and-lower-costs-opinion-1...
3•bilsbie•1h ago•0 comments

Mechanisms as Types

https://spacechimplives.substack.com/p/mechanisms-as-types
1•azhenley•1h ago•0 comments

Our Founders Would Abhor What the USPTO Is Doing with the Patent System

https://www.techdirt.com/2025/12/02/our-founders-would-abhor-what-the-uspto-is-doing-with-the-pat...
1•hn_acker•1h ago•0 comments

Trump pardons Honduran ex-president who was convicted of drug crimes

https://www.npr.org/2025/12/02/nx-s1-5628382/trump-pardons-honduran-ex-president-juan-orlando-her...
10•CXSHNGCB•1h ago•0 comments

Is this code clean? A critical look at Clean Code 2nd Edition

https://bugzmanov.github.io/cleancode-critique/clean_code_second_edition_review.html
3•birdculture•1h ago•0 comments

The Man I Want to Meet the Most: The Life of Alfred Lee Loomis

https://chillphysicsenjoyer.substack.com/p/the-man-i-want-to-meet-the-most
1•crescit_eundo•1h ago•0 comments

Eev: Emacs Execute Verbosely

https://anggtwu.net/index.html#eev
1•oumua_don17•1h ago•0 comments