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

hfsearch: A fast CLI tool to discover models and datasets on HuggingFace

https://github.com/HenokB/hfsearch
1•henok_ademtew•3m ago•0 comments

Cloudflare error page of every HTTP status code (reload to show random page)

https://cloudflare-error-page-3th.pages.dev/
1•Donlon•5m ago•0 comments

Show HN: PokeSuite – Pokémon TCG pack simulator and competitive team builder

https://www.pokesuite.com
1•Fsen•6m ago•0 comments

Serflings is a remake of The Settlers 1

https://www.simpleguide.net/serflings.xhtml
1•doener•11m ago•0 comments

When AI Goes Wrong

https://whenaifail.com/category/ai-coding/
1•daco•11m ago•0 comments

Show HN: Minimal Start/Stop app for tracking billable hours (Tauri)

https://github.com/HustleCoding/time-tracker
1•FlorinDobinciuc•12m ago•0 comments

Self-destructing thumb drive can brick itself and wipe your secret files away

https://www.theregister.com/2025/11/21/selfdestructing_external_ssd/
2•beardyw•16m ago•0 comments

Open Source Village

https://opensourcevillage.org/
2•me_bx•18m ago•0 comments

Australia's High Court Chief Justice says judges have become "human filters"

https://www.theguardian.com/law/2025/nov/21/judges-have-become-human-filters-as-ai-in-australian-...
1•ubutler•19m ago•0 comments

Inside Korea's Extreme Labor System [video]

https://www.youtube.com/watch?v=pjjhrwVYPE8
1•rendall•20m ago•0 comments

Structural Inducements for Hallucination in Large Language Models

https://zenodo.org/records/17655375
1•taubek•31m ago•0 comments

Enshittification of Arduino Begins? Qualcomm Starts Clamping Down

https://itsfoss.com/news/enshittification-of-arduino-begins/
4•Teknoman117•44m ago•1 comments

Cara berbicara dengan AirAsia Indonesia

1•Sebarserbi•46m ago•4 comments

Can you take an ox to Oxford?

https://alexwlchan.net/2025/ox-in-oxford/
1•surprisetalk•46m ago•0 comments

All warfare is information warfare

https://shakeddown.substack.com/p/all-warfare-is-information-warfare
2•surprisetalk•46m ago•0 comments

The 45-year period when America got things done [video]

https://www.youtube.com/watch?v=r9xdvOATny0
1•surprisetalk•47m ago•0 comments

Claude for PHP Developers

https://codewithphp.com/series/claude-php-developers/
1•dalemhurley•50m ago•1 comments

Callspark now let's you call any US number for $0.02 per minute

http://x.com/callsparkapp
1•ahmaliic•51m ago•0 comments

Navy Salvage Ship Trying to Fish Super Hornet and Seahawk Out of South China Sea

https://www.twz.com/sea/navy-salvage-ship-trying-to-fish-crashed-super-hornet-and-seahawk-out-of-...
3•breve•52m ago•0 comments

Meta is building an AI-powered morning brief in push to compete with ChatGPT

https://www.washingtonpost.com/technology/2025/11/21/meta-ai-powered-daily-brief/
1•pretext•55m ago•0 comments

Code Intel: Multi-agent LLM and AST analysis for Python codebases (Python only)

https://github.com/Oussamcsc/codebase-intelligence
1•ousamzing•57m ago•1 comments

AI 2027 doomsday scenario is been postponed

https://twitter.com/DKokotajlo/status/1991564542103662729
1•nsoonhui•58m ago•1 comments

Code Sandbox Tech Behind Manus and Claude Agent Skills

https://www.dataleadsfuture.com/exclusive-reveal-code-sandbox-tech-behind-manus-and-claude-agent-...
1•juanviera23•1h ago•0 comments

ShowHN: RepoScout – A multi-platform Git repo search tool in Rust

1•shreeshjha•1h ago•0 comments

Set Theory with Types

https://lawrencecpaulson.github.io//2025/11/21/Typed_Set_Theory.html
3•baruchel•1h ago•0 comments

OpenAI Demo'd Fixing Issue #2472 Live. It's Still Open

https://blog.tymscar.com/posts/openaiunmergeddemo/
1•baobun•1h ago•0 comments

Why are late night conversations better?

https://www.humaninvariant.com/blog/conversations
1•humaninvariant•1h ago•0 comments

The CIA's mission to sabotage Afghanistan's opium

https://www.washingtonpost.com/national-security/2025/11/12/cia-afghanistan-heroin-poppy-seeds/
2•EvgeniyZh•1h ago•0 comments

Being Chronically Offline Is the New Cool [video]

https://www.youtube.com/watch?v=Lm0gb4wDKCE
1•inatreecrown2•1h ago•0 comments

Moss: a Rust Linux-compatible kernel in 26,000 lines of code

https://github.com/hexagonal-sun/moss
3•hexagonal-sun•1h ago•1 comments