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

Off-grid Dublin data centre fuelled by own power plant

https://www.rte.ie/news/business/2026/0312/1562943-dublin-data-centre/
1•austinallegro•3m ago•0 comments

Show HN: I built an AI comic generator from scratch using only natural language

1•twwch•5m ago•0 comments

Barnum Effect

https://en.wikipedia.org/wiki/Barnum_effect
1•nomilk•7m ago•0 comments

Show HN: AI Comic Builder – turn a script into an animated video local

1•twwch•7m ago•0 comments

AI 'Man Camps' Offer Golf, Free Steaks to Lure Workers in Texas

https://www.bloomberg.com/news/features/2026-03-06/the-700-billion-ai-data-center-boom-is-fueling...
1•helsinkiandrew•7m ago•0 comments

Show HN: Hackerdogs Preview 2 Released

https://preview.hackerdogs.ai
1•tredkar•8m ago•0 comments

The Deep Lunacy that was almost "DEEP VZN"

https://robreid.substack.com/p/the-deep-lunacy-that-was-almost-deep
1•boxed•10m ago•0 comments

SBCL: A Sanely-Bootstrappable Common Lisp (2008) [pdf]

https://research.gold.ac.uk/id/eprint/2336/1/sbcl.pdf
2•pabs3•11m ago•0 comments

LLMs as Computers? Executing programs inside transformers exponentially faster

https://twitter.com/ChristosTzamos/status/2031845134577406426
1•smusamashah•11m ago•0 comments

AI-Powered Bot Compromises GitHub Actions Workflows

https://www.infoq.com/news/2026/03/ai-bot-github-actions-exploit/
1•geoffbp•11m ago•0 comments

Show HN: Tarvos – fix context rot by chaining fresh Claude agents automatically

https://github.com/Photon48/tarvos/tree/main
1•Photon48•13m ago•0 comments

The state of book publicity now

https://derekkrissoff.substack.com/p/the-state-of-book-publicity-now
1•lermontov•13m ago•0 comments

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
1•darccio•17m ago•0 comments

Haruspex – Digital Horoscopes

https://www.haruspex.click/
1•ChilledTonic•22m ago•0 comments

Show HN: HN-IRC – I rebuilt Hacker News as a retro IRC client

https://d1mf42rlcj2lrs.cloudfront.net/
1•Ralz•22m ago•0 comments

Dopamine Detox – Track and block social media scrolling (Chrome extension)

https://chromewebstore.google.com/detail/dopamine-detox/emohipjjikifpmfibhnjbfeklbnjkica
1•Ogbon•23m ago•1 comments

New technology to reduce risk of architect drift. Ask for feedback

1•EfimovSD•23m ago•1 comments

AI chatbot urged violence, study finds

https://arstechnica.com/tech-policy/2026/03/use-a-gun-or-beat-the-crap-out-of-him-ai-chatbot-urge...
1•asplake•26m ago•0 comments

Cartown

https://www.fasterhorses.md/articles/cartown
2•bernardgmeyer•30m ago•0 comments

Your Data is Made Powerful by Context (so stop destroying it already)

https://substack.com/home/post/p-190315082
1•donutshop•31m ago•0 comments

You Could Be Next

https://www.theverge.com/cs/features/877388/white-collar-workers-training-ai-mercor
2•rvz•34m ago•0 comments

Show HN: JetSet AI – flight search where follow-up questions work

1•ptak_dev•34m ago•0 comments

Brunelly – AI platform that helps turn ideas into production software

https://brunelly.com/
1•rihabz•35m ago•1 comments

DOGE staffer who flagged grants for 'DEI' struggles to define the term [video]

https://www.youtube.com/watch?v=WpbGF7l-t2w
3•marysminefnuf•37m ago•1 comments

My Favourite Thing About Rust Is the Compiler

https://mayberay.bearblog.dev/my-favourite-thing-about-rust-is-the-compiler/
2•mugamuga•40m ago•0 comments

Ask HN: Do You Use Ublockdns.com?

2•SoftwareEn2•41m ago•0 comments

Agency Agents: Open-source framework for building multi-agent AI workflows

https://github.com/msitarzewski/agency-agents
2•paidx•43m ago•0 comments

Replit Agent 4: Built for Creativity

https://blog.replit.com/introducing-agent-4-built-for-creativity
3•simonebrunozzi•43m ago•0 comments

Distributed Python dataframes and machine learning with Livebook and Elixir

https://dashbit.co/blog/distributed-python-livebook
2•ahamez•46m ago•0 comments

I don't know if I like working at higher levels of abstraction

https://xeiaso.net/blog/2026/ai-abstraction/
2•watermelon0•46m ago•0 comments