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

I Spent My Sabbatical Building a Power Meter for Sledgehammers

https://leblancfg.com/intensity-pad-founder-story.html
1•alin23•23s ago•0 comments

Haiku has not caught up with the times

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044
1•rcarmo•1m ago•0 comments

Hermes.ms in Git history causes extra usage billing of Claude subscription

https://github.com/anthropics/claude-code/issues/53262
1•OlivOnTech•1m ago•0 comments

Best Clinic Management Software Trusted by Top Clinics

1•Consentz•3m ago•0 comments

Build your own voice assistant and run it locally – Whisper, Ollama, Bark (2024)

https://medium.com/@vndee.huynh/build-your-own-voice-assistant-and-run-it-locally-whisper-ollama-...
1•thunderbong•4m ago•0 comments

HardenedBSD Officially Moves to Radicle

https://hardenedbsd.org/article/shawn-webb/2026-04-26/hardenedbsd-officially-radicle
1•r3ason•4m ago•0 comments

Apple already won the AI race: Your favorite AI will be gone soon

https://medium.com/@michalmalewicz/your-favorite-ai-will-be-gone-soon-9b3b035fe3db
1•hardmaru•12m ago•1 comments

DeepSeek V4 is a display of Huawei AI chip's capabilities

https://www.technologyreview.com/2026/04/24/1136422/why-deepseeks-v4-matters/
1•jackyli02•15m ago•0 comments

China's Plans to Fight in Space

https://ig.ft.com/space-weapons/
4•bazzmt•22m ago•0 comments

GitHub outages since Microsoft acquisition

https://old.reddit.com/r/github/comments/1rnvhs9/githubs_historic_downtime_scraped_and_plotted/
4•nreece•23m ago•0 comments

Hang.live

https://hang.live/
4•gurjeet•24m ago•0 comments

Most People Who Ride Bikes Have Soft Tires

https://maxmautner.com/2026/04/25/soft-tires.html
2•mslate•25m ago•0 comments

State of my AI-assisted development workflows

https://handmadeoasis.com/state-of-ai-assisted-workflows-april-2026/
2•RamtinJ95•29m ago•0 comments

Claude Code plugin for designing modular systems

https://github.com/vladikk/modularity
2•xamut•29m ago•1 comments

Millions Are Turning to a Cheaper, Electricity-Free Cooling Solution

https://economictimes.indiatimes.com/news/international/us/say-goodbye-to-traditional-air-conditi...
3•thelastgallon•30m ago•1 comments

Dwarkesh Patel’s Podcast Lets You Can Eavesdrop on the A.I. Elite

https://www.nytimes.com/2026/04/26/business/dwarkesh-patel-podcast-ai.html
2•jbegley•33m ago•0 comments

Running Gemma 4 31B on Mac with Ollama

https://sammyrulez.github.io/running-gemma-4-31b-on-an-apple-silicon-mac-with-ollama.html
2•sammy_rulez•39m ago•0 comments

Postgate: Multi-tenant HTTP proxy for PostgreSQL with SQL validation

https://github.com/openworkers/postgate
2•gurjeet•43m ago•0 comments

Gte-go – my over-optimized embedding model

https://rcarmo.github.io/projects/gte-go/
3•rcarmo•45m ago•0 comments

Show HN: App that crosses an hour off your day when you open a distraction

https://apps.apple.com/gb/app/oh-my-hours/id6760450002
4•jarko27•45m ago•0 comments

Micron pushes US Congress to tighten chip-making tool export to China

https://www.reuters.com/legal/government/micron-pushes-us-congress-crack-down-chip-tool-sales-chi...
2•jackyli02•45m ago•0 comments

Study the 50 leaked LLM Interview Questions with my lil learning App

https://boguslavskyy.com/projects/llm-interview-learning-app/
2•indoor47•48m ago•1 comments

POV: You Go to Australia [video]

https://www.youtube.com/shorts/qryHpGtpukM
1•keepamovin•48m ago•0 comments

Mathematician Solves Algebra's Oldest Problem

https://www.msn.com/en-us/news/technology/mathematician-solves-algebra-s-oldest-problem/ar-AA1DZPr7
2•galaxyLogic•53m ago•0 comments

The cost math behind routing Claude Code through Ollama (~90% cut)

https://github.com/Coherence-Daddy/use-ollama-to-enhance-claude
2•CoherenceDaddy•53m ago•0 comments

MemPalace – Local-first AI memory

https://github.com/mempalace/mempalace
1•danboarder•56m ago•0 comments

I built an offline replacement of MS Money

https://covely.ourcrmonline.com
2•sunnyy02•59m ago•0 comments

Google's best practices document for designing AI products

https://pair.withgoogle.com/guidebook/
1•dotancohen•1h ago•0 comments

Excited Delirium[audio]

https://thisiscriminal.com/episode-355-excited-delirium-3-6-2026/
2•muddi900•1h ago•0 comments

North Korean IT workers are stealing remote jobs: Americans are helping them

https://fortune.com/2026/04/25/north-korean-it-worker-scheme-american-faciliators/
3•napolux•1h ago•1 comments