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

Show HN: Userscript to Display Age/Karma of HN Users

https://gist.github.com/m4chinations/f6d58711a94077d96cf4157665b0bab3
1•linksbro•1m ago•0 comments

Show HN: A POST only back end framework

https://nile-js.github.io/nile/
1•HusseinKizz•3m ago•0 comments

Anthropic and Palantir Bring Claude to U.S. Intelligence and Defense (2024)

https://investors.palantir.com/news-details/2024/Anthropic-and-Palantir-Partner-to-Bring-Claude-A...
1•notRobot•3m ago•0 comments

Latest progress helping Qwen3-4B Learn

https://github.com/kibbyd/adaptive-state
1•kibbyd1985•20m ago•0 comments

Casting SALT like Metal – What Happens? [video]

https://www.youtube.com/watch?v=HaY-gvgS6JY
1•rmast•21m ago•0 comments

Using Git While Trans

https://code.curly.kiwi/2026/02/27/using-git-while-trans/
3•grandsham•22m ago•0 comments

Elliptic Curve Cryptography

https://growingswe.com/blog/elliptic-curve-cryptography
1•subset•25m ago•0 comments

How many AA batteries does it take to power a PC setup? [video]

https://www.youtube.com/watch?v=U5lskFXDbWs
1•rmast•27m ago•0 comments

I built an AI tool to replace hiring agencies

https://hire-flow-io.netlify.app
1•enima•29m ago•1 comments

Berkshire Hathaway – 2025 annual letter [pdf]

https://www.berkshirehathaway.com/letters/2025ltr.pdf
2•kamaraju•31m ago•0 comments

Why Your Laptop May No Longer Be Where Work Happens

https://clouddataandai.substack.com/p/why-your-laptop-may-no-longer-be
1•mitul_suthar•31m ago•0 comments

Show HN: Word-doodle – browser-based generative doodle text art engine

https://github.com/j-ncel/word-doodle
1•koalux•34m ago•1 comments

Show HN: SpecLock – AI Constraint Engine that stops AI from breaking locked code

https://github.com/sgroy10/speclock
1•sgroy10•42m ago•0 comments

Show HN: A GFM+GF-MathJax/Latex HTML formatting adventure

https://github.com/scottvr/phart/blob/main/docs/GHM-LATEX.md
1•ycombiredd•42m ago•0 comments

Diffusion Models (2024)

https://andrewkchan.dev/posts/diffusion.html
1•vinhnx•44m ago•0 comments

Show HN: I built a free AI study tool– paste notes, get flashcards in 10 seconds

https://prepareyourself.app
1•digi_wares•45m ago•0 comments

Josh Collison and Dwarkesh Patel Interview Elon Musk [video]

https://www.youtube.com/watch?v=BYXbuik3dgA
1•surprisetalk•49m ago•0 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
5•alex_young•50m ago•0 comments

Malm Whale in Gothenburg

https://www.atlasobscura.com/places/malm-whale
1•thunderbong•51m ago•0 comments

Plugtest

https://en.wikipedia.org/wiki/Plugtest
2•dhorthy•52m ago•0 comments

Show HN: EmCogni Code, the context engine for the "why" behind your codebase

https://www.emcogni.com/
1•ssbodapati•53m ago•0 comments

Simple Made Inevitable: The Economics of Language Choice in the LLM Era

https://felixbarbalet.com/simple-made-inevitable-the-economics-of-language-choice-in-the-llm-era/
1•puredanger•55m ago•0 comments

Idiot Plot

https://en.wikipedia.org/wiki/Idiot_plot
1•treetalker•57m ago•0 comments

Interview with Thomas Wouters by Guido van Rossum

https://gvanrossum.github.io/interviews/Thomas.html
3•tzury•1h ago•0 comments

Translatorhub

https://translatorhub.org/
2•zidana•1h ago•0 comments

Show HN: ClaudeTerminal – A tabbed terminal manager for Claude Code

https://github.com/Mr8BitHK/claude-terminal
1•mr8bit•1h ago•0 comments

NeurIPS 2021 Papers (2021)

https://tanelp.github.io/neurips2021/
1•vinhnx•1h ago•0 comments

Office of Technology Assessment

https://en.wikipedia.org/wiki/Office_of_Technology_Assessment
1•softwaredoug•1h ago•0 comments

MidnightBSD Excludes Calif. From Desktop Use Due to Digital Age Assurance Act

https://ostechnix.com/midnightbsd-excludes-california-digital-age-assurance-act/
4•WaitWaitWha•1h ago•2 comments

OpenSandbox

https://github.com/alibaba/OpenSandbox
1•nileshtrivedi•1h ago•0 comments