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•12mo 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•12mo 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?

Open Source Does Not Imply Open Community

https://blog.feld.me/posts/2026/04/open-source-does-not-imply-open-community/
1•RohanAdwankar•50s ago•0 comments

Elon Musk gets an apology from California regulators as a SpaceX lawsuit settled

https://apnews.com/article/california-coastal-commission-spacex-elon-musk-33065c34cc0555faa91ca25...
3•db48x•5m ago•1 comments

Prompt Engineering Is Permanent

https://yiblet.com/posts/prompt-engineering-is-permanent/
1•syiblet•7m ago•0 comments

Year of the Linux Laptop: Omarchy on XPS

https://www.dell.com/en-us/blog/year-of-the-linux-laptop-omarchy-on-xps/
1•evanjrowley•8m ago•0 comments

A PQC Almanac (2025) [pdf]

https://downloads.bouncycastle.org/java/docs/PQC-Almanac.pdf
1•mooreds•12m ago•0 comments

Dr. Jordan B. Peterson's 10 Step Guide to Clearer Thinking Through Essay Writing

https://medium.com/practicecomesfirst/dr-jordan-b-petersons-10-step-guide-to-clearer-thinking-thr...
1•eigenBasis•13m ago•0 comments

Comparing the best open source TranslateGemma projects

https://metalglot.com/blog/open-source-translategemma-comparison/
1•metalglot•15m ago•0 comments

The AI workflow I use to build apps

https://juanmanuelalloron.com/post/my-current-ai-workflow-for-building-apps/
1•juan_allo•22m ago•0 comments

Show HN: Pantheon – A Path 1 PlayStation 2 game engine (VU1 / EE / DMA)

https://github.com/94BILLY/PANTHEON
1•94BILLY•23m ago•0 comments

Can a Hand‑Built EV Change Mobility in East Africa? [video]

https://www.youtube.com/watch?v=gh4N_UNyKgk
1•thelastgallon•23m ago•0 comments

Farewell, Jeeves: Ask.com shuts down

https://techcrunch.com/2026/05/02/farewell-jeeves-ask-com-shuts-down/
2•mikece•23m ago•0 comments

Original Apollo 11 code open-sourced by NASA

https://www.tomshardware.com/software/original-apollo-11-code-open-sourced-by-nasa-original-comma...
1•ohjeez•24m ago•0 comments

Too Dark? Too Bright? Scientists Need Your Help to Make Reading Easier

https://news.ncsu.edu/2026/04/citizen-science-reading-project/
1•ohjeez•28m ago•0 comments

Intelligence Buying Intelligence

https://stevekrouse.com/intelligence
1•azhenley•28m ago•0 comments

Running Shoes Have Evolved – From Ancient Greece to Record-Breaking Marathons

https://www.nytimes.com/2026/05/01/sports/running-shoe-history-adidas-sneakers-london-marathon.html
1•y1n0•37m ago•0 comments

Why do crabs walk sideways? Scientists trace it back 200M years

https://www.sciencedaily.com/releases/2026/05/260501052844.htm
2•y1n0•42m ago•0 comments

US Navy signs deal with AI firm for training underwater drones

https://www.tomshardware.com/tech-industry/artificial-intelligence/us-navy-signs-deal-with-ai-fir...
1•y1n0•44m ago•0 comments

New Netflix documentary reexamines Winnie Mandela's divisive legacy

https://www.npr.org/2026/05/02/nx-s1-5800681/netflix-winnie-mandela
1•andsoitis•48m ago•0 comments

Reaching for the stars: enduring symbols of Soviet science in pictures

https://www.theguardian.com/artanddesign/gallery/2026/may/03/symbols-of-soviet-science-in-pictures
1•andsoitis•51m ago•0 comments

I touched a ZX Spectrum for the first time in decades

https://www.theguardian.com/games/2026/may/01/zx-spectrum-retro-games-dominik-diamond
1•andsoitis•53m ago•0 comments

The Wayfinders

https://longreads.com/2026/04/21/marshall-islands-soccer-team/
1•mooreds•53m ago•0 comments

How to prepare to be a startup founder (2021)

https://letterstoanewdeveloper.com/2021/11/22/how-to-prepare-to-be-a-startup-founder/
1•mooreds•55m ago•0 comments

Care Homes and Hotels in Japan Shut as Expansion Strategy Unravels

https://www.newsonjapan.com/article/149075.php
2•mikhael•58m ago•0 comments

Training language models to be warm can reduce accuracy and increase sycophancy

https://www.nature.com/articles/s41586-026-10410-0
1•0in•1h ago•0 comments

Why Nostr Will Win Where Mastodon and Bluesky Failed

https://primal.net/a/naddr1qvzqqqr4gupzqgycd7urua6ajmgc3jjunhcseekkz0swkljhdzs0pvftxlx6cgdnqq2hwv...
3•nout•1h ago•0 comments

A Common Proof of the Riemann Hypothesis and the Collatz Conjecture

https://www.academia.edu/166172334/A_Common_Proof_of_the_Riemann_Hypothesis_and_the_Collatz_Conje...
4•kristintynski•1h ago•4 comments

Maryland Is First to Ban A.I.-Driven Price Increases in Grocery Stores

https://www.nytimes.com/2026/05/01/business/surveillance-pricing-groceries-maryland.html
27•doener•1h ago•14 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
1•azhenley•1h ago•0 comments

Clandestine network smuggling Starlink tech into Iran to beat internet blackout

https://www.bbc.com/news/articles/cvgzk91leweo
11•1659447091•1h ago•2 comments

The math behind how LLMs are trained and served

https://www.dwarkesh.com/p/reiner-pope
1•stopachka•1h ago•0 comments