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

Memory Allocation (2023)

https://samwho.dev/memory-allocation
1•mooreds•2m ago•0 comments

Ubers COO says its getting harder to justify the money spent on AI tokenmaxxing

https://www.businessinsider.com/uber-coo-andrew-macdonald-ai-token-spending-harder-justify-2026-5
1•_____k•2m ago•0 comments

Show HN: Musts – Open-source validation loops for AI coding agents

https://github.com/bitomule/musts
1•bitomule•2m ago•0 comments

Protect your Mac from invisible AI tool behaviour now

https://www.coworkguard.com/
1•coworkguard•3m ago•0 comments

Astronauts won't be the ones building the moon's first permanent base

https://spacedaily.com/sd-a-colorado-startup-just-raised-30-million-on-a-quiet-bet-that-astronaut...
1•smooke•4m ago•0 comments

Huawei proposes Tau Scaling Law to replace geometric scaling in semiconductors

https://www.huawei.com/en/news/2026/5/ieee-iscas-tau-scaling
1•lucamark•4m ago•0 comments

You should consider sending earnest spam

https://www.nair.sh/guides-and-opinions/marketing-under-pressure/you-should-consider-sending-earn...
1•nilirl•5m ago•0 comments

Introducing USB4STREAM Protocol for Linux – Opening Up Some Nifty Uses for USB4

https://www.phoronix.com/news/Intel-Linux-USB4STREAM
1•voxadam•5m ago•0 comments

RSS2BSKY

https://codeberg.org/nesges/rss2bsky
2•mooreds•7m ago•0 comments

Is it too soon to built software factories?

3•Bnowako•7m ago•0 comments

I Eavesdrop on Frog Conversations

https://www.nature.com/articles/d41586-026-01621-6
2•Brajeshwar•11m ago•0 comments

Icon Network shuts down on December 31, 2026

https://www.icon.foundation/blog/2026/final-date-set-for-sodax-migration-icon-network-to-shut-dow...
2•matonias•12m ago•1 comments

Lessons I Learned from Creating Searx

https://hister.org/posts/lessons-i-learned-from-creating-searx
3•theanonymousone•13m ago•0 comments

I was likely targeted by DPRK in a sophisticated developer malware campaign

https://blog.denv.it/posts/i-was-likely-targeted-by-dprk-in-a-sophisticated-developer-malware-cam...
2•denysvitali•13m ago•0 comments

Is AI flattening your team's creativity?

https://www.atlassian.com/blog/ai-at-work/is-ai-flattening-your-teams-creativity-heres-how-to-tell
3•ilalex•14m ago•0 comments

Show HN: Feynman AI research Assistant plugin for Obsidian

https://community.obsidian.md/plugins/feynman-research-agent
2•arogers17•16m ago•0 comments

Show HN: SynapCores – AI-native database (vector, graph, SQL, AutoML, LLM)

https://synapcores.com
2•SQLv2•18m ago•0 comments

Dimensions of the Geiger-Muller Tube Holder on the GGreg20_V3 Geiger Counter PCB

https://iot-devices.com.ua/en/ggreg20-v3-j305-tube-mounting-dimensions/
2•iotdevicesdev•19m ago•0 comments

Show HN: Complete Family Tree Viewer

https://github.com/erikshelley/complete-family-tree-viewer
3•shellerik•19m ago•0 comments

Persistent multiplayer state without chaos

https://packagemain.tech/p/persistent-multiplayer-state-without
2•der_gopher•23m ago•0 comments

Free Quick Developer Online Tools

https://quickfix.tools/developer/
2•mlongo•25m ago•1 comments

Founder of 7/11 Japan, Toshifumi Suzuki, has died at age 93

https://www.referenceforbusiness.com/biography/S-Z/Suzuki-Toshifumi-1932.html
4•L_Rahman•26m ago•1 comments

How the engineer behind Claude Cowork uses Claude

https://www.lennysnewsletter.com/p/how-i-ai-how-the-engineer-behind
2•simonebrunozzi•27m ago•1 comments

Evaluating Large Language Models in a Complex Hidden Role Game

https://arxiv.org/abs/2605.22826
1•Brajeshwar•28m ago•0 comments

Ask HN: How are you managing cloud cost?

https://getnable.com/
1•chaandannn•31m ago•0 comments

David Blackwells Enduring Legacy

https://simons.berkeley.edu/news/david-blackwells-enduring-legacy
1•nothrowaways•31m ago•0 comments

Nordtheme/Nord: An Arctic, north-bluish color palette

https://github.com/nordtheme/nord
1•ankitg12•31m ago•0 comments

Show HN: AutoMaxFix – controlled AI repair loop that won't eat your migrations

https://github.com/Noumenon-ai/AutoMaxFix
1•Noumenon_AI•32m ago•0 comments

I'm the CEO of Goldman Sachs. The AI Job Apocalypse Is Overblown

https://www.nytimes.com/2026/05/22/opinion/ai-job-crisis-goldman-sachs.html
8•ent101•32m ago•2 comments

After automation: what if the work of tasking LLMs stays?

https://every.to/p/after-automation
1•ersiees•32m ago•0 comments