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?

Backdooring LLMs – Do you trust your AI provider?

https://pgaleone.eu/ai/2026/11/14/backdooring-llms-and-trust/
2•me2too•6m ago•0 comments

Show HN: Voice-first app onboarding experiment (UI, Pros, Cost)

https://coffeeandtoken.com/anatomy-of-a-voice-first-onboarding/
1•briodf•13m ago•0 comments

Why the Airbus A321XLR Often Gets Stuck Climbing for First Few Hours of Flight

https://simpleflying.com/airbus-a321xlr-often-stuck-climbing-1st-few-hours-flight/
3•edward•14m ago•0 comments

Nature-Based Sanitation. Cihuatlán: A Large-Scale Artificial Wetland

https://revista.unaminternacional.unam.mx/en/nota/12/saneamiento-basado-en-la-naturaleza-cihuatla...
1•bryanrasmussen•29m ago•0 comments

Could China's battery-swapping e-trucks be the answer to EV range anxiety

https://www.theguardian.com/environment/2026/nov/12/china-battery-swapping-e-trucks-catl-ev-range...
2•xbmcuser•30m ago•0 comments

Show HN: Automatic extraction gets you structured data from web data

http://66.44.17.8/:3333
1•sunsonia926•34m ago•0 comments

Spreadsheets and Other Models of Morality

https://blog.coredump.cx/p/spreadsheets-and-other-models-of
1•surprisetalk•42m ago•0 comments

Secure Exclaves and Ambient Sensing

https://security.apple.com/blog/secure-exclaves/
1•u1hcw9nx•45m ago•0 comments

Skill Recorder: Desktop app that records your on-screen work session

https://github.com/microsoft/skill-recorder
1•taubek•47m ago•0 comments

British salmon loses its organic status

https://www.theguardian.com/environment/2026/nov/14/salmon-organic-british-farmed-environmental-w...
1•rdmuser•49m ago•0 comments

The Tyranny of Format over Content

https://medium.com/@smoking2man/the-tyranny-of-format-over-content-how-modern-ai-models-fit-human...
1•Aldus551•49m ago•0 comments

LetterBurst: Crossword Puzzle

https://play.google.com/store/apps/details?id=com.letterburst.game&hl=en_US
1•CompetitivePie•57m ago•0 comments

The Forgotten Sport of Balloon Jumping

https://www.smithsonianmag.com/air-space-magazine/sport-balloon-jumping-180958805/
2•thunderbong•1h ago•0 comments

This Week in Plasma: XWayland on Demand

https://blogs.kde.org/2026/11/14/this-week-in-plasma-xwayland-on-demand/
2•HieronymusBosch•1h ago•0 comments

Tip

https://vivaldi.com/blog/tips/tip-639/
1•wizardV•1h ago•0 comments

Jensen Huang Ouster at Nvidia:Bigger Governance and Coming Financial Train Wreck

https://www.nakedcapitalism.com/2026/11/jensen-huang-ouster-at-nvidia-bigger-governance-and-comin...
2•hackandthink•1h ago•0 comments

Who Cares about a Computation?

https://topos.institute/blog/2026-09-22-who-cares-about-a-computation/
1•jses•1h ago•0 comments

Kitesurf is now open source

https://blog.cloudflare.com/kitesurf-open-source/
2•Fysi•1h ago•0 comments

Show HN: Gamma PDF – AI-native PDF reader, self-hosted

https://gammapdf.com/
3•tim4431•1h ago•1 comments

Sky sues household dodgy-box users in first case of its kind

https://www.independent.ie/business/sky-sues-household-dodgy-box-users-in-first-case-of-its-kind/...
1•austinallegro•1h ago•2 comments

Show HN: Language for API calls, load tests and MCP server

https://stampdrill.com/
1•sia_xi•1h ago•0 comments

Microsoft on FAA Ground Stop: It Wasn't Me

https://kotaku.com/microsoft-on-faa-ground-stop-it-wasnt-me-2000756749
2•01-_-•1h ago•0 comments

Australia's First Computer Conference

https://www.pearcey.org.au/heritage/computing-history/australias-first-computer-conference/
1•Skyfall106•1h ago•0 comments

WhatsTask – An AI project manager for teams of people and agents

https://www.whatstask.com
1•hajara_sabnam•1h ago•0 comments

My grandfather was a Cosa Nostra hitman. Now I know the truth about the Mafia

https://www.repubblica.it/en/europe/people/2026/11/13/news/filmmaker_gaspare_mutolo_nephew_mafia_...
1•simonebrunozzi•1h ago•0 comments

Tidy Tabs – A new take on managing tabs

https://tidytabs.dev/
2•ydna404•1h ago•1 comments

Son of ex-CIA chief Brennan charged

https://www.reuters.com/legal/litigation/son-ex-cia-chief-brennan-charged-over-sexual-images-mino...
2•usernomdeguerre•1h ago•2 comments

Bioprinting on a Budget

https://www.rochester.edu/newscenter/what-is-3d-bioprinting-advancements-733332/
2•geox•1h ago•0 comments

ForumNOX Hacking Forums

https://forumnox.com/
2•Jokerr•2h ago•0 comments

GNU Maintainer: Slave-Made Code? "YES"

https://www.flyingpenguin.com/gnu-maintainer-slave-made-code-yes/
4•latexr•2h ago•2 comments