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

The Joy of Clothes

https://dynkarken.substack.com/p/the-joy-of-wearing-pretty-clothes
1•thinkingaboutit•3m ago•0 comments

The K-Shaped Future of Software Engineering

https://www.ian.so/writing/k-shaped-future-software-engineering
1•ian_dot_so•5m ago•0 comments

Body Censorship

https://www.youtube.com/watch?v=FcpRrytvYYo
1•barrister•6m ago•0 comments

AI diagram looks great and nobody will read it

https://jpcaparas.medium.com/your-ai-diagram-looks-great-and-nobody-will-read-it-f1e34fe9c8f1
1•birdculture•6m ago•0 comments

Nvidia helped DeepSeek hone AI models later used by China's military

https://www.reuters.com/world/china/nvidia-helped-deepseek-hone-ai-models-later-used-by-chinas-mi...
2•DustinEchoes•8m ago•0 comments

Major grid operator for Pa., East Coast predicts energy shortfall by mid-2027

https://www.spotlightpa.org/news/2026/01/pjm-grid-short-fall-power-plants-data-centers-environment/
1•bikenaga•10m ago•0 comments

A Mild Take on Coding Agents

https://meelo.substack.com/p/a-mild-take-on-coding-agents
2•milowata•12m ago•0 comments

Show HN: A constraints based IaC decision tool

https://whichiac.com
1•batemanchris•12m ago•1 comments

Common Lisp Extension for Zed

https://github.com/etyurkin/zed-cl
1•mike_ivanov•12m ago•0 comments

The K-Shaped Future of Software Engineering

https://twitter.com/ian_dot_so/status/2013316676637294890
1•mji•14m ago•0 comments

Claude Code hacks its way to success

https://www.theeggeadventure.com/2026/01/recovering-ssh-on-a-headless-raspberry-pi-through-a-priv...
2•brother_corp•17m ago•0 comments

Ask HN: How do you measure AI adoption within your teams? (Best Practices)

1•nemath•17m ago•0 comments

Show HN: LSP and Grammar for HTML and Mustache Templates

https://github.com/reteps/tree-sitter-htmlmustache
1•spicypete•19m ago•0 comments

Show HN: A novel pattern for handling in-flight requests in distributed caches

https://www.infoq.com/articles/durable-objects-handle-inflight-requests/
1•gkoos•20m ago•0 comments

Trump voters support military intervention in more countries

https://www.politico.com/news/2026/01/28/trump-is-threatening-strike-iran-his-supporters-wouldnt-...
5•doctor_radium•20m ago•4 comments

Reframing Agents: Why I Don't Think Agents Are the Future of AI Software

https://valtetu.framer.website/blog/reframing-agents
2•valtetu•22m ago•1 comments

SeqMem – New update. Specified details. V2

https://drive.google.com/file/d/1PgAdnsFrHaataORGucauLjLbn-jkLp42/view?usp=drive_link
1•goofgef•22m ago•0 comments

Haskell Hangman (Surveillance)

https://www.youtube.com/watch?v=bGHMET8knv4
1•barrister•24m ago•0 comments

Elon Musk's SpaceX, Tesla, and xAI in talks to merge, according to reports

https://techcrunch.com/2026/01/29/elon-musk-spacex-tesla-xai-merger-talks-ipo-reuters/
6•gfortaine•25m ago•2 comments

In car safety, why some companies merely meet a standard and others exceed it

https://anderson-review.ucla.edu/in-car-safety-why-some-companies-merely-meet-a-standard-and-othe...
1•hhs•25m ago•0 comments

I Hope This Email Finds You Before I Do

https://www.lastweekinaws.com/blog/i-hope-this-email-finds-you-before-i-do/
1•dabinat•26m ago•0 comments

Nvidia PersonaPlex: Natural Conversational AI with Any Role and Voice

https://research.nvidia.com/labs/adlr/personaplex/
2•smusamashah•27m ago•0 comments

A lock-free, high-performance IPC channel inspired by Firedancer's Tango

https://crates.io/crates/rust-tango
1•amineelqaraoui•27m ago•0 comments

Show HN: GitViral – Turn technical READMEs into social media threads

https://git-viral.vercel.app
1•Helios999•28m ago•1 comments

Transport for London Interchange Signs Standard [pdf]

https://content.tfl.gov.uk/tfl-interchange-signs-standard.pdf
2•susam•28m ago•0 comments

Original Oil Painting

https://twitter.com/i/status/1902923432997658918
1•barrister•29m ago•2 comments

RlmUI- the HTML/CSS User Interface Library

https://github.com/mikke89/RmlUi
1•kreco•30m ago•0 comments

Bluesky 2025 Transparency Report

https://bsky.social/about/blog/01-29-2026-transparency-report-2025
1•emschwartz•30m ago•0 comments

How do you surface real confidence before execution?

https://www.cognu.app/confidence-check
1•anticlickwise•31m ago•2 comments

Sasha

https://twitter.com/i/status/1962525429530525967
1•barrister•31m ago•1 comments