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?

Read Michel de Montaigne's Essays in Modern English

https://magicreader.com/montaigne
1•mzelling•4m ago•0 comments

Block and Tackle: Job Cuts and the AI Narrative

https://om.co/2026/02/28/block-tackle-job-cuts-the-ai-narrative/
1•qwikhost•6m ago•0 comments

Smallest QR Code Is So Tiny It's Invisible to the Human Eye

https://www.sciencealert.com/worlds-smallest-qr-code-is-so-tiny-its-invisible-to-the-human-eye
1•rendx•7m ago•0 comments

Show HN: Foundations Chat, macOS AI chat built on Apple's local models

https://codeeverywhereca.github.io/foundations-chat/
1•coevcan•9m ago•0 comments

A curious phenomenon called 'Etak' (2024)

https://maphappenings.com/2024/04/11/story-of-etak/
1•giancarlostoro•11m ago•0 comments

The limited utility of the phrase "GNU/Linux" (2022)

https://seirdy.one/posts/2022/12/09/limited-utility-gnu-linux/
1•LorenDB•12m ago•0 comments

Show HN: Sun – Realtime voice agent for group conservation not just turn taking

https://www.getsun.io/
2•anand_pattern•13m ago•1 comments

A semantic Code Search CLI but with grep filters

https://github.com/lightonai/next-plaid
1•raphaelty•17m ago•1 comments

Swarming, spinning microrobots can manipulate their surroundings

https://news.cornell.edu/stories/2026/02/swarming-spinning-microrobots-can-manipulate-their-surro...
1•geox•25m ago•0 comments

I'm Sorry This New Artist Sucks [video]

https://www.youtube.com/watch?v=eKxNGFjyRv0
1•thunderbong•28m ago•0 comments

Opponent Modeling Wins 2× Faster Than Stockfish

https://blog.lukesalamone.com/posts/winning-faster-than-stockfish/
1•salamo•30m ago•0 comments

Personal token: share equity in your lifetime upside

https://github.com/homan9/personal-token/blob/main/whitepaper.md
1•koopuluri•34m ago•0 comments

Future of Devtools and Moats

https://ravivyas.com/2026/03/01/dev-tools-and-moats
2•ravivyas•35m ago•1 comments

Piezoelectric gel to regenerate lost bone (e.g. periodontitis)

https://oralbiolife.com/
1•camebeforeagain•35m ago•1 comments

Show HN: Orcv: If tmux was built for window management on macOS in 2026

https://github.com/jasonjmcghee/orcv
1•jasonjmcghee•37m ago•1 comments

Show HN: I used LLMs to build a compression tool that beats xz on x86_64 ELFs

4•mohsen1•37m ago•3 comments

Vibe Knowing

https://idiallo.com/blog/large-language-models-make-us-feel-smarter
1•foxfired•37m ago•0 comments

How Nanotech Made an Old Leukemia Drug 22,000x Stronger

https://www.medscape.com/viewarticle/how-nanotech-made-old-leukemia-drug-22-000x-stronger-2026a10...
1•wjb3•42m ago•1 comments

Show HN: Aver - Git-native CLI knowledge management tool (keep issues with code)

https://github.com/dentm42/aver
1•dentm42•42m ago•1 comments

AI Now Has Its Own Cursor

https://clawdcursor.com/
1•AmrDabb•45m ago•0 comments

FOMC Insight Engine: semantic search over Fed archives

https://causalityineconomics.com/fomc_archive
2•jez•46m ago•0 comments

Which State Governs the Internet's Fine Print

https://tostracker.app/analysis/governing-law
1•tldrthelaw•47m ago•0 comments

Customer Intelligence Protocol

https://github.com/Cole-Cant-Code/CIP-Customer-Intelligence-Protocol
1•ColeW•47m ago•1 comments

Show HN: YourFinanceWORKS – Open-source financial management with AI

https://www.yourfinanceworks.com
1•snowsky•47m ago•0 comments

Show HN: Leyoda – Shareable startup cards with analytics

https://leyoda.eu
1•whitehatd•49m ago•1 comments

Show HN: BeatCanvas – A browser-based demoscene visualizer for SoundCloud

https://beatcanvas.net/
1•fsrc•50m ago•1 comments

A U.S. scholarship thrills a teacher in India. Then came soul-crushing questions

https://www.npr.org/2026/03/01/g-s1-104772/teacher-india-school-patriarchy-fulbright
4•aanet•52m ago•1 comments

Most common fields of study, from 1970 to now

https://flowingdata.com/2026/02/19/fields-of-study-ranked-by-bachelors-degrees-since-1970/
3•gmays•52m ago•0 comments

Show HN: ClawShield – Open-source security proxy for AI agents (Go, eBPF)

https://github.com/SleuthCo/clawshield-public
1•sleuthco•53m ago•1 comments

Quarkdown: Markdown with Superpowers

https://quarkdown.com/
2•amichail•56m ago•0 comments