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?

Lausd joins suit against social media companies

https://laist.com/brief/news/education/los-angeles-unified-school-district-lausd/los-angeles-unif...
1•freshtake•1m ago•0 comments

Show HN: Code typing game to increase your typing speed in 10 languages

https://coderacer.dev
1•Coderacer1•4m ago•0 comments

Canadian man says U.S. border officers made him give DNA sample

https://www.cbc.ca/news/canada/windsor/us-border-dna-canadian-man-cbp-cross-larson-dingell-raskin...
1•geox•5m ago•0 comments

What to Do About Those Menu Item Icons in macOS 26 Tahoe

https://mastodon.social/@stroughtonsmith/116262411548746327
1•erickhill•6m ago•0 comments

We built a multi-agent research hub. The waitlist is a reverse-CAPTCHA

https://enlidea.com
1•LZK•7m ago•1 comments

Folk are getting dangerously attached to AI that always tells them they're right

https://www.theregister.com/2026/03/27/sycophantic_ai_risks/
2•Brajeshwar•8m ago•0 comments

The risk of AI isn't making us lazy, but making "lazy" look productive

1•acmerfight•9m ago•0 comments

I built an AI that tailors your CV to every job in seconds

1•alebarbon•10m ago•0 comments

For-Agent

https://github.com/reposwarm/reposwarm-cli/wiki/--for-agent
1•royosherove•15m ago•0 comments

Show HN: Loreline, narrative language transpiled via Haxe: C++/C#/JS/Java/Py/Lua

https://loreline.app/en/docs/technical-overview/
1•jeremyfa•15m ago•1 comments

Thousands risk of deadly complications recent exposure to measles in 11 states

https://www.dailymail.co.uk/health/article-15686151/deadly-measles-brain-swelling-virus-surge.html
1•Bender•15m ago•0 comments

Can humans have babies in space? It may be harder than expected

https://www.space.com/space-exploration/human-spaceflight/having-babies-in-space-may-be-harder-th...
2•Brajeshwar•18m ago•0 comments

Difftastic

https://difftastic.wilfred.me.uk
2•KolmogorovComp•19m ago•0 comments

Every novel that has ever been published is sitting inside ChatGPT

https://twitter.com/heynavtoor/status/2037638554374099409
2•guerrilla•20m ago•1 comments

Against the Smartphone Theory of Everything

https://www.theargumentmag.com/p/against-the-smartphone-theory-of
1•ravenical•24m ago•0 comments

New Consulting Contracts in Texas Will Muzzle Authors and Harm Students

https://bookriot.com/texas-esc-1-discriminatory-contracts/
1•mooreds•25m ago•0 comments

Microsoft tells crusty old kernel drivers to get with the Windows HCP

https://www.theregister.com/2026/03/27/microsoft_kernel_trust/
1•Bender•26m ago•1 comments

ICAO issued new power bank restriction on flight

https://www.icao.int/news/new-power-bank-restrictions-will-safeguard-international-aviation
2•phantomathkg•26m ago•0 comments

Microsoft takes up residence next to OpenAI, Oracle

https://www.theregister.com/2026/03/27/microsoft_ai_crusoe/
1•Bender•27m ago•1 comments

Sharpee Interactive Fiction and Computer Science

https://github.com/ChicagoDave/sharpee/blob/main/docs/architecture/sharpee-computer-science.md
1•ChicagoDave•28m ago•0 comments

When Fake Supplements Work

https://nautil.us/when-fake-supplements-work-1279324
1•Brajeshwar•28m ago•0 comments

Show HN: Cursorlag – add a lag trail to your cursor

https://cursorlag.velocifyer.com/
1•Velocifyer•30m ago•1 comments

The Generative AI Policy Landscape in Open Source

https://redmonk.com/kholterhoff/2026/02/26/generative-ai-policy-landscape-in-open-source/
2•mooreds•31m ago•0 comments

How Not to Interview (Interesting People)

https://om.co/2026/03/19/how-not-to-interview-interesting-people/
1•mooreds•31m ago•0 comments

You can't imitation-learn how to continual-learn

https://www.lesswrong.com/posts/9rCTjbJpZB4KzqhiQ/you-can-t-imitation-learn-how-to-continual-learn
3•supermdguy•32m ago•0 comments

Don Cheli – AI writes tests before seeing the code (TDD as iron law)

https://github.com/doncheli/don-cheli-sdd
1•doncheli•33m ago•0 comments

Accidental eCall activation in cars lead to 75% false 112 calls in Nederland

https://nltimes.nl/2026/03/28/one-three-112-calls-netherlands-unintentional-many-triggered-car-sy...
3•giuliomagnifico•34m ago•0 comments

Harness Engineering

https://blog.vtemian.com/post/harness-engineering/
1•vtemian•36m ago•0 comments

Show HN: Live, interactive architecture diagrams for open-source projects

https://jigsawml.com/open-source-projects
1•maverickprac•38m ago•0 comments

Anthropic's Claude popularity with paying consumers is skyrocketing

https://techcrunch.com/2026/03/28/anthropics-claude-popularity-with-paying-consumers-is-skyrocket...
2•salkahfi•39m ago•0 comments