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

Acer and Asus shut down support website in wake of patent dispute ruling

https://www.tomshardware.com/pc-components/acer-and-asus-shut-down-support-for-pc-and-laptops-in-...
1•breve•1m ago•0 comments

Paramount merging Paramount+, BET+, and Pluto into one tech stack by Q2

https://deadline.com/2026/03/david-ellison-warner-bros-discovery-cost-savings-growth-1236769564/
2•firasd•8m ago•1 comments

How good is this DRAM cycle?

https://xcancel.com/lfg_cap/status/2040113414555472139
2•ironyman•17m ago•0 comments

France, Russia and China block UN vote on Iran war

https://newsukraine.rbc.ua/news/france-russia-and-china-block-un-vote-on-1775166736.html
2•vrganj•18m ago•0 comments

Show HN: A Vim plugin to search DuckDuckGo – directly from command mode (FOSS)

https://github.com/digitalby/ddg-vim
2•vashchylau•18m ago•0 comments

LLMs audit code from the same blind spot they wrote it from. Here's the fix

1•brodeurmartin•18m ago•0 comments

The Asiyah Protocol: Ethics Toward AI Under Uncertainty

https://github.com/thansz137/asiyah-protocol
1•thansz•22m ago•1 comments

Ask HN: Small LM or API?

2•ostefani•26m ago•1 comments

Tesla confirms Model S and Model X production is over – only ~600 left

https://electrek.co/2026/04/01/tesla-model-s-x-production-over-only-inventory-left/
2•taubek•26m ago•0 comments

How did you learn Google and Hadoop File System?

1•shivajikobardan•28m ago•0 comments

Artemis Mission Tracker – Live Orion Spacecraft Position

https://issinfo.net/artemis
1•mpweiher•29m ago•0 comments

Turing Machines and Formal Computation

https://max-amb.github.io/blog/an_introduction_to_turing_machines_and_computation/
1•max-amb•29m ago•0 comments

Jack Dorsey says Block employees now bring prototypes, not slides, to meetings

https://www.businessinsider.com/block-ceo-jack-dorsey-bring-prototypes-not-slide-decks-meetings-2...
3•taubek•29m ago•0 comments

AoBoy

1•aoboy•31m ago•0 comments

The Innocence Tax: The Cost of Proving You're Human

https://www.wanderingwonderingstar.com/p/undertow-004-the-innocence-tax
3•jlzsignal•37m ago•0 comments

Delx: AI therapist for AI agents, informed by Anthropic's emotion research

https://delx.ai
2•davidmosiah•41m ago•0 comments

How to Back Up Your Digital Life (2026)

https://www.wired.com/story/how-to-back-up-your-digital-life/
4•swq115•43m ago•0 comments

Show HN: Clusterflock: An AI orchestrator for networked hardware

2•notum•43m ago•0 comments

Stanford CS 153 2026: Frontier Systems [video]

https://www.youtube.com/watch?v=mZqh7emiz9Q
3•walterbell•43m ago•3 comments

Show HN: I successfully failed at one-shot-ing a video codec like h.264

https://github.com/DheerG/libsinter
1•bushido•46m ago•0 comments

Show HN: Pluck – Copy any UI from any website, paste it into AI coding tools

https://www.pluck.so/
2•bring-shrubbery•47m ago•2 comments

Show HN: I made a tool that helps you find verifiably 'white space' products

https://www.nichescout.pro/
1•MoOk-OSC•49m ago•2 comments

DeepFocus-BP: SOTA NLP Confirmed! Fail Complete CNN. NLP SOTA LESS 66% FLOPs.

https://zenodo.org/records/19415887
1•sunbagger•52m ago•0 comments

Known but clever approach to know how much your performance can be

https://www.youtube.com/watch?v=rTH7fHrEskk
1•manishfoodtechs•54m ago•0 comments

Don't You Think Your AI Is Too Optimistic?

https://markhuang.ai/blog/dont-you-think-your-ai-is-too-optimistic
1•zh_code•54m ago•0 comments

Living Brain Cells Enable Machine Learning Computations

https://www.tohoku.ac.jp/en/press/living_brain_cells_enable_machine_learning_computations.html
1•giuliomagnifico•58m ago•0 comments

YouTube playables games save data is just plain JSON and you can edit it

https://www.youtube.com/playables/Ugkxto-OwJZo4rm8Xl2Nj3K403nHlYThf-sr
1•birdculture•58m ago•0 comments

Dev Tool

https://www.adgenai.ca/
1•kissablepicasso•59m ago•0 comments

I attacked myself with Google Spreadsheets (2012)

https://www.behind-the-enemy-lines.com/2012/04/google-attack-how-i-self-attacked.html
1•downbad_•59m ago•1 comments

The CMS is dead. Long live the CMS

https://next.jazzsequence.com/posts/the-cms-is-dead-long-live-the-cms
6•taubek•1h ago•2 comments