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?

Trump has prepared speech on extraterrestrial life, Lara Trump says

https://thehill.com/homenews/administration/5744218-trump-holds-alien-speech/
1•zzzeek•2m ago•0 comments

Querying OSM objects by their shapes

https://www.openstreetmap.org/user/rphyrin/diary/408263
1•altilunium•3m ago•0 comments

The History of Sushi

https://en.wikipedia.org/wiki/History_of_sushi
1•BiraIgnacio•3m ago•1 comments

The Worst-Case Future for White-Collar Workers

https://www.theatlantic.com/ideas/2026/02/ai-white-collar-jobs/686031/
2•petethomas•5m ago•0 comments

Do the people building Claude understand what they've created?

https://www.npr.org/2026/02/18/nx-s1-5717561/do-the-people-building-the-ai-chatbot-claude-underst...
2•geox•6m ago•0 comments

Show HN: What We See. An AI generated art exhibition

https://www.whatwesee.space/
1•sarreph•8m ago•0 comments

Model collapse – how LLMs become worse when trained on their own output

https://www.ibm.com/think/topics/model-collapse
2•daymos•8m ago•0 comments

Conversations with an AI That Argues Back

https://luisfernandoyt.makestudio.app/blog/878-conversations-with-ai
1•lout332•9m ago•0 comments

Zuckerberg testimony: Company consulted stakeholders about beauty filters

https://www.cnbc.com/2026/02/18/meta-mark-zuckerberg-social-media-safety-trial.html
1•samaysharma•10m ago•0 comments

The Only "Good" Cloud: Is a Google Cloud

https://blog.dijit.sh/gcp-the-only-good-cloud/
2•dijit•10m ago•0 comments

I made $15K/month at 13. Built a YC startup at 20. Still looking for my person

3•HNMaxHN•11m ago•1 comments

Hacking conference Def Con bans three people linked to Epstein

https://techcrunch.com/2026/02/18/hacking-conference-def-con-bans-three-people-linked-to-epstein/
3•donutshop•12m ago•0 comments

S3lite – A SQLite-like database engine with S3-compatible storage back end

https://github.com/sjcotto/s3lite
2•sjcotto•24m ago•0 comments

A Thick-Skulled Troodontid Theropod from the Late Cretaceous of Mexico

https://www.mdpi.com/1424-2818/18/1/38
1•PaulHoule•24m ago•0 comments

Cloud and AWS cost consultant Duckbill expands to software, raises $7.75M

https://www.geekwire.com/2026/cloud-and-aws-cost-consultant-duckbill-expands-to-software-raises-7...
2•mooreds•26m ago•0 comments

DBML: DSL for easily creating ER diagrams

https://dbml.dbdiagram.io/home/
1•todsacerdoti•26m ago•0 comments

How AI is affecting productivity and jobs in Europe

https://cepr.org/voxeu/columns/how-ai-affecting-productivity-and-jobs-europe
2•pseudolus•27m ago•0 comments

8086 Agentic AI Assembler Tool

https://github.com/cookertron/agent86
1•cookertron•28m ago•0 comments

Apollo Seeks to Reassure Clients About Rowan's Epstein Ties

https://www.bloomberg.com/news/articles/2026-02-18/apollo-seeks-to-reassure-clients-about-executi...
2•petethomas•34m ago•1 comments

China Is Killing the Fish

https://www.noahpinion.blog/p/china-is-killing-the-fish
1•paulpauper•34m ago•0 comments

Gemini JiTOR Jailbreak: Unredacted Methodology

https://recursion.wtf/posts/jitor_unredacted/
1•tomjakubowski•35m ago•0 comments

Dwarkesh Patel's 2026 Podcast with Elon Musk and Other Recent Elon Musk

https://thezvi.substack.com/p/on-dwarkesh-patels-2026-podcast-with-850
1•paulpauper•35m ago•0 comments

Things you should never do (Part 1)

https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
3•nedwin•37m ago•3 comments

Chief: Delightfully Simple Agentic Loops

https://www.geocod.io/code-and-coordinates/2026-02-18-introducing-chief/
1•mooreds•38m ago•0 comments

Show HN: How well can you remember these colors?

https://dialed.gg
2•sss111•38m ago•0 comments

Replacing Humans With AI Completely BACKFIRED [video][22m]

https://www.youtube.com/watch?v=TYe9DSPuCaE
2•Bender•39m ago•0 comments

Show HN: Devly – 50 developer tools in a native macOS menu bar

https://apps.apple.com/us/app/devly/id6759269801?mt=12
1•aarush-prakash•41m ago•1 comments

Tourists no longer allowed to take JLPT in Japan from 2026

https://www.japantimes.co.jp/news/2026/02/18/japan/jlpt-tourist-ban/
2•mikhael•41m ago•1 comments

Grandson of Reese's Peanut Butter Cups inventor says Hershey is cutting corners

https://apnews.com/article/reeses-peanut-butter-cups-hershey-chocolate-1a66ec75247fd146888b7a747a...
7•petethomas•42m ago•2 comments

A secure dotenv – from the creator of dotenv

https://dotenvx.com/
2•handfuloflight•44m ago•0 comments