frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

Comcast: At peak, GTA 6 accounted for nearly a quarter of all internet traffic

https://www.pcgamer.com/games/grand-theft-auto/comcast-at-peak-gta6-accounted-for-nearly-a-quarte...
1•Brajeshwar•3m ago•0 comments

AI Riemann hypothesis proof is true, independent mathematicians confirm

https://www.scientificamerican.com/article/the-ai-riemann-hypothesis-proof-is-almost-certainly-tr...
1•cybermango•3m ago•0 comments

From screens in class to smart glasses, Norway rethinks new technologies

https://phys.org/news/2026-11-screens-class-smart-glasses-norway.html
1•rbanffy•5m ago•0 comments

Show HN: File search for Windows. Finds any file by name in about a millisecond

https://hrih.si/projects/scry/
1•DonAtimator•12m ago•0 comments

I counted the MCP servers on my laptop: 43, and 9 are in no config file

https://regulai-security.com/research/43-mcp-servers-on-one-laptop
1•voldemorty•12m ago•0 comments

If we stop reading the code, what do we read?

https://thenewstack.io/ai-agent-code-review/
1•devilcius•13m ago•0 comments

Show HN: I built a newspaper for white-collar crime that paints every portrait

https://financialcrimes.fyi/
2•veryduhass•13m ago•0 comments

Gaming in Streaming: Moonlight TvOS Pyrowave Implementation (Sub 2ms Latency)

https://github.com/JKGiova/moonlight-tvos-pyrowave
1•JKGiova•15m ago•0 comments

Jj-musubi: live sync for Jujutsu

https://www.serpentine.com/posts/2026/announcing-jj-musubi/
1•birdculture•19m ago•0 comments

Show HN: RealEditPDF – 100% client-side PDF editor with zero server uploads

https://realeditpdf.com/
2•lucky_dev0•22m ago•0 comments

Show HN: Samsara, and the way out

https://samsara.pauoliver.net/
1•pauoliver•22m ago•0 comments

Show HN: MemFiddle

https://memalign.github.io/m/memfiddle/index.html
1•memalign•24m ago•0 comments

Wayland Apps Composited in the Browser

https://wland.vercel.app/
1•ridruejo•24m ago•1 comments

Show HN: I built a Rick and Morty explainer video generator (It's Paid)

https://usediorama.com/rick-and-morty
1•dixitbavu•36m ago•0 comments

Is prompt tuning still a thing today? Anybody still using the likes of DSPy?

1•nlpnerd•36m ago•0 comments

Local Only Encrypted Journal

https://private-journal.netlify.app/
1•rammy1234•44m ago•0 comments

Draft-tree decoding on Apple Silicon: M4 vs. M5/M6 and bit-exact Metal

https://blog.yuhuachen.com/blog/2ArXyvXoSTOQ9nFQtp3Fz
1•yuhuabill•47m ago•0 comments

MotherDuck, Meet Excel

https://motherduck.com/blog/motherduck-duckdb-meet-excel/
1•Tomte•47m ago•0 comments

Why we're blind to the color blue (2021)

https://calebkruse.com/10-projects/seeing-blue/
1•sammatilda•48m ago•0 comments

Inkling 2 Small on Nvidia B300: 5.1x to 7.5x faster expert GEMMs, same bits

https://www.rightnowai.co/blog/bit-identical-fp4-moe-kernels-on-blackwell
3•OsamaJaber•52m ago•0 comments

Three-way translation merge: keeping translated pages in sync with an LLM

https://maxmart.github.io/posts/three-way-translation-merge/
1•maxmart•52m ago•0 comments

Show HN: Cloud-drift-report – an open-source driftctl alternative for AWS

https://github.com/orchesterra/cloud-drift-report
1•akshaykilam•53m ago•0 comments

A Slinky on an Escalator Is a Weirdly Good Test of LLM Intelligence

https://morethanamachine.com/posts/slinky-escalator-benchmark/
1•reddmachine•54m ago•1 comments

Gemini: Can't prevent training or review even with no history retained

https://techcrunch.com/2026/11/17/google-to-keep-gemini-chats-for-two-months-up-from-72-hours-eve...
2•iotage•54m ago•1 comments

Hex Marks the Spot

https://www.museumofplay.org/blog/hex-marks-the-spot/
1•jonbaer•57m ago•0 comments

A History of Clojure (2020)

https://dl.acm.org/doi/pdf/10.1145/3386321
1•tosh•1h ago•0 comments

Qlaude – Claude Code against your own model server

https://github.com/trail-openers/qlaude
1•velmu•1h ago•0 comments

The Manufacturing of Novelty

https://www.ft.com/content/99711b1a-3e54-4349-9c81-769cf7c96b97
1•JumpCrisscross•1h ago•0 comments

Probabilistic data structures in Go, part 2

https://antonz.org/probabilistic-data-structures-2/
1•mfrw•1h ago•1 comments

California train burglars carefully executed heists for 'staggering' $22M haul

https://www.theguardian.com/us-news/2026/nov/21/california-arrests-train-heists
2•ljf•1h ago•0 comments