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•7mo 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•7mo 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: Mind2Post, a tool that turn your minds into high-value posts

https://mind2post.com.com
1•tangpanqing•2m ago•0 comments

Geoffrey Hinton warns AI has 'progressed even faster than I thought' [video]

https://www.youtube.com/watch?v=5qBDQgfeB6s
1•davidst•4m ago•0 comments

Insight Debt

https://bytesauna.com/post/insight-debt
1•mapehe•7m ago•1 comments

Why didn't anyone point out the flawed operating leverage story in SaaS?

https://elocination.substack.com/p/why-didnt-anyone-point-out-the-flawed
1•pr337h4m•7m ago•0 comments

The Second Great Error Model Convergence

https://matklad.github.io/2025/12/29/second-error-model-convergence.html
1•ingve•18m ago•0 comments

Turning Images into Talking Videos with AI

https://www.infinitetalk.com
1•cy1414569•19m ago•1 comments

The Many Worlds Interpretation of Quantum Mechanics (Hugh Everett PhD Thesis) [pdf]

https://www.pbs.org/wgbh/nova/manyworlds/pdf/dissertation.pdf
2•kdavis•20m ago•0 comments

What I learned after collecting large-scale US business data

https://rangelead.com/
1•RangeLead•31m ago•1 comments

Multidimensional Analysis: Algebras and Systems for Science and Engineering

https://www.georgehart.com/research/multanal.html
2•teleforce•45m ago•0 comments

Ask HN: Ruby 4 and unicorn segfault (kgio) how to get a gem release?

1•catatsuy•53m ago•0 comments

A framework for semiring-annotated type systems

https://stax.strath.ac.uk/concern/theses/tt44pn44w
2•teleforce•54m ago•0 comments

AI language models duped by poems

https://www.dw.com/en/ai-language-models-duped-hacked-by-poems-chatgpt-gemini-claude-security-mec...
1•DeLopSpot•57m ago•0 comments

Million dollar idea? Imagine TikTok but everytime you scroll it's a new meme

https://www.onemorememe.com/
2•mattmerrick•59m ago•2 comments

The $276B Bull: Ken Fisher's Top Bets for the AI Supercycle

https://www.13radar.com/guru/ken-fisher
1•EvansWilson•1h ago•2 comments

Staying ahead of censors in 2025

https://forum.torproject.org/t/staying-ahead-of-censors-in-2025-what-weve-learned-from-fighting-c...
36•ggeorgovassilis•1h ago•5 comments

Case Study on Structured JSON Prompts for Nano Banana Pro

https://curateclick.com/blog/2025-12-29-nano-banana-pro-prompts
1•czmilo•1h ago•3 comments

Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

https://github.com/HarryR/z80ai
10•quesomaster9000•1h ago•1 comments

Binaries

https://fzakaria.com/2025/12/28/huge-binaries
5•todsacerdoti•1h ago•1 comments

Show HN: DockMate – Terminal UI for Container Management

https://github.com/shubh-io/DockMate
1•shubh-io•1h ago•0 comments

Show HN: Got tired of searching for AI news daily so I built my own AI news page

https://dreyx.com/
3•lilsquid•1h ago•3 comments

Codex Kaioken – OpenAI Codex CLI fork with subagents, memory, and live settings

https://github.com/jayasuryajsk/codex-kaioken
2•j34nsh33•1h ago•2 comments

Show HN: Snippets – Minimal local scratchpad for code and notes

https://snippets.dev/
1•william_uk•1h ago•0 comments

Copybara – tool for transforming and moving code between repositories

https://github.com/google/copybara
2•wiradikusuma•1h ago•0 comments

The Lure of a Rising Asian Metropolis? No Traffic.

https://www.nytimes.com/2025/12/28/world/asia/indonesia-nusantara-future-capital.html
1•mitchbob•1h ago•1 comments

World's Smallest Programmable, Autonomous Robots

https://techxplore.com/news/2025-12-world-smallest-programmable-autonomous-robots.html
5•the-mitr•1h ago•0 comments

Panoramas of Star Trek Sets

https://mijofr.github.io/st-panorama/
8•jfil•1h ago•0 comments

Show HN: My not-for-profit search engine with no ads, no AI, & all DDG bangs

https://nilch.org
9•UnmappedStack•1h ago•0 comments

Show HN: MCP Web Host

https://mcphost.link
2•init0•1h ago•0 comments

Dream

https://en.wikipedia.org/wiki/Dream
2•downboots•1h ago•0 comments

Show HN: AI-assisted approach to detecting patterns in network traffic

https://github.com/vgaj/phd/tree/main/mcp_prototype
2•viru7•1h ago•0 comments