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?

Show HN: Evading an AI SOC with Sable from Vulnetic

https://blog.vulnetic.ai/evading-an-ai-soc-with-sable-from-vulnetic-fad12376995c
1•danieltk76•57s ago•0 comments

Why the Wellness Elite Such as Jordan Peterson and Mark Hyman Are Getting Sepsis

https://sgcarney.substack.com/p/the-miracle-treatment-that-almost
1•randycupertino•1m ago•1 comments

Show HN: ANSI Saver for Apple TV

https://apps.apple.com/us/app/ansi-saver/id6762137767
1•lardissone•1m ago•0 comments

Yann LeCun says Dario Amodei "knows nothing about AI effects on jobs"

https://timesofindia.indiatimes.com/technology/tech-news/godfather-of-ai-and-metas-most-popular-e...
1•kordlessagain•1m ago•0 comments

Anthropomorphism and Trust in Human-Large Language Model Interactions

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

Show HN: We trained a 32B model to beat Opus 4 at credit card optimization

https://huggingface.co/spaces/endishai/blog-grpo-credit-cards
1•dimberman•5m ago•0 comments

GraalVM JavaScript Sandboxing

https://www.graalvm.org/latest/security-guide/sandboxing/
1•eatonphil•6m ago•0 comments

A Security Framework Sized for the Business You Run

https://nerdsec.io/blog/a-security-framework-sized-for-the-business-you-actually-run/
2•levidurfee•6m ago•0 comments

You don't need a RAG, you just need RAG

https://enopdf.com/blog/rag-for-pdfs/
1•gcassie•8m ago•0 comments

MNT Reform is an open hardware laptop, designed and assembled in Germany

http://mnt.stanleylieber.com/reform/
1•speckx•8m ago•0 comments

Two Paradoxes Blocking Bitcoin

https://alignmenteconomy.org
2•moeman245•9m ago•1 comments

Show HN: Self-hosted Raspberry Pi wall display (no cloud, no subscription)

https://github.com/silentg33k/chalkboard-installer
1•g_33_k•10m ago•1 comments

Learn Vim for the Last Time

https://danielmiessler.com/blog/vim
1•dolfmaggot•13m ago•1 comments

Build the Dam System

https://jsfour.substack.com/p/build-the-dam-system
1•js4•14m ago•0 comments

Show HN: Germball – Drone-deployed seeds triggered by soil moisture

https://www.indiegogo.com/en/projects/germball/germball--smart-seed-capsule
1•lukascodes•14m ago•0 comments

Corporate Bullshit Considered Harmful

https://chuniversiteit.nl/papers/corporate-bullshit
1•ibobev•15m ago•0 comments

Highlighting Interactive Code Blocks

https://www.redblobgames.com/blog/2026-04-16-highlighting-interactive-code-blocks/
1•ibobev•15m ago•0 comments

US birth records uncover an autism risk surge tied to common drugs

https://medicalxpress.com/news/2026-04-millions-birth-uncover-autism-surge.html
1•OutOfHere•15m ago•0 comments

Haversine Distance

https://www.4rknova.com//blog/2026/04/19/haversine-distance
1•ibobev•15m ago•0 comments

Porting Red Alert to the Browser

https://lab.rosebud.ai/engineering/porting-openra-to-the-browser
1•vladgl94•16m ago•0 comments

Local ML inference benchmark: PyTorch vs. llama.cpp vs. the Rust ecosystem

http://kvark.github.io/ai/performance/2026/04/19/tales-from-the-inference-land.html
1•kvark•16m ago•1 comments

DanceUI: ByteDance's open source SwiftUI reimplmementation

https://github.com/bytedance/DanceUI
1•CharlesW•16m ago•0 comments

Show HN: fmsg – An open distributed messaging protocol

https://markmnl.github.io/fmsg/show-hn.html
1•markmnl•16m ago•0 comments

Qwen3.6-Max-Preview: Smarter, Sharper, Still Evolving

https://qwen.ai/blog?id=qwen3.6-max-preview
6•mfiguiere•17m ago•0 comments

RL Scaling Laws for LLMs

https://cameronrwolfe.substack.com/p/rl-scaling-laws
2•Brajeshwar•19m ago•0 comments

The Silent Crisis Killing Our Children, and What We Keep Refusing to Do About It

https://comuniq.xyz/post?t=973
2•01-_-•20m ago•0 comments

Txpay.app Easy to share Crypto Payment links

https://txpay.app/
1•maximoCorrea•20m ago•0 comments

Is there a musical-scale equivalent for story structure?

https://blog.quanten.co/is-there-a-musical-scale-equivalent-for-story-structure-clustering-screen...
1•phaedrus044•20m ago•0 comments

OSS Maintainers Need an Answer to AI Clean Rooms

https://12gramsofcarbon.com/p/open-source-maintainers-need-an-answer
3•theahura•21m ago•2 comments

Netgear Gets Mysterious Exemption to Trump FCC 'Router Ban,' Refuses to Say How

https://www.techdirt.com/2026/04/20/netgear-gets-mysterious-exemption-to-trump-fcc-router-ban-ref...
2•cdrnsf•22m ago•1 comments