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?

Show HN: AI Resume Screening – Looking for feedback from recruiters

https://aiomniu.top/services/resume-screening
1•aiomniu•2m ago•0 comments

YouTube offering creators millions if they don't sign deals with Netflix

https://www.tubefilter.com/2026/08/19/youtube-reportedly-offering-creators-payouts-netflix-deals/
1•thm•2m ago•0 comments

Stealing Reasoning Traces from Proprietary LLM APIs

https://arxiv.org/abs/2608.09867
2•doppp•7m ago•0 comments

Bapu Studio – Open-Source Client for APIs, Databases, and Secrets

https://github.com/joravar/bapu-studio
1•sarvaiya•11m ago•0 comments

Google styleguide code review skills

https://jeanbza.github.io/ai/claude/2026/08/08/google-codereview-skills.html
1•jeanbza•17m ago•0 comments

Async Solid – Fetch High, Block Low

https://www.solidjs.com/blog/async-solid-fetch-high-block-low
1•GavinAnderegg•18m ago•0 comments

Houston, we have String Reverse

https://antonm.net/string_reverse/
2•geetee•19m ago•0 comments

Show HN: Mail client optimized for self-hosted email across multiple domains

https://mainly.crnst8.com/
1•flowerpil•23m ago•0 comments

Claude Code adds new "concise" output style setting

https://twitter.com/ClaudeDevs/status/2090245922685063634
2•enraged_camel•29m ago•0 comments

Misconfigured Admin System Prompts Can Invert an LLM's Safety Layer

https://medium.com/@aadvait.cr/how-misconfigured-admin-system-prompts-can-invert-every-single-llm...
1•Aadvait•30m ago•0 comments

Did someone wearing Meta Glasses film you today? Are you sure?

https://www.theguardian.com/technology/ng-interactive/2026/aug/19/meta-glasses-privacy-surveillance
3•cdrnsf•33m ago•2 comments

What Is Reasoning

https://lucumr.pocoo.org/2026/8/19/what-is-reasoning/
2•doppp•36m ago•0 comments

Index your images and videos locally

https://github.com/ikouchiha47/cinestar
2•argentum47•37m ago•0 comments

Building Without Predicting

https://sive.rs/fit
1•thm•41m ago•0 comments

Show HN: Lutefish Stream (Play Music over Internet)

https://lutefish.com/
2•mfarstad•43m ago•0 comments

Chinese firms are wrapping their supply chains around the globe

https://www.economist.com/interactive/business/2026/08/19/chinese-firms-are-wrapping-their-supply...
2•petethomas•43m ago•0 comments

Stripe says "the singularity" has begun

https://www.axios.com/2026/08/19/stripe-payments-openrouter-singularity
2•psychanarch•43m ago•2 comments

Why the richest country can't defend vital infrastructure

https://www.economist.com/united-states/2026/08/19/why-the-worlds-richest-country-cant-defend-vit...
1•petethomas•44m ago•1 comments

Show HN: I made a way for event guests to share photos without installing an app

https://lensoraevents.com/
1•aningemma1•45m ago•0 comments

A $21B 'Kids in Chips' Startup Is Scooping Up Nvidia Talent

https://www.wsj.com/tech/ai/a-21-billion-kids-in-chips-startup-is-scooping-up-nvidia-talent-4d099f12
2•gmays•48m ago•0 comments

Turns are Better than Radians

https://www.computerenhance.com/p/turns-are-better-than-radians
2•mayoff•50m ago•1 comments

Credentialism is coming for AI agents

https://betocmn.com/blog/credentialism-is-coming-for-ai-agents/
1•thedreammachine•51m ago•0 comments

Lutefish Stream

https://lutefish.com/pages/our-story
1•mfarstad•52m ago•1 comments

Anti-Flock signs removed as Rolling Meadows, Il debates license plate cameras

https://www.dailyherald.com/20260819/news/anti-flock-signs-removed-as-rolling-meadows-debates-lic...
2•rmnoflock•53m ago•0 comments

Show HN: Mirotalk WebRTC Story

https://docs.mirotalk.com/story/
2•ngup•55m ago•1 comments

The war on data centres is a bit fake

https://www.economist.com/business/2026/08/19/the-war-on-data-centres-is-a-bit-fake
2•andsoitis•55m ago•0 comments

Misse Peace Polymers Atomic Oxygen Erosion Results [pdf]

https://ntrs.nasa.gov/api/citations/20070002707/downloads/20070002707.pdf
1•thunderbong•58m ago•1 comments

Parsing IP addresses in C# at crazy speeds

https://lemire.me/blog/2026/08/19/parsing-ip-addresses-in-c-at-crazy-speeds/
2•mfiguiere•58m ago•0 comments

Blastproof – E2E tests in plain English, no CSS selectors anywhere

https://github.com/hamc/blastproof
1•h_amc•58m ago•1 comments

Death Stalks the Irish Pub

https://www.ft.com/content/0ff3c190-725a-47a5-afcc-e369135c0a60
1•petethomas•59m ago•1 comments