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

How to Recommend Linux to People

https://joebaldwin.me.uk/blog/how-to-recommend-linux/
1•calcifer•6s ago•0 comments

Seedream 5.0-Preview: An image model that does web search during generation

https://www.atlascloud.ai/hi/collections/seedream-5
1•Alisaqqt•11s ago•1 comments

One source of truth for Codex and Claude Code

https://github.com/Vadimkomis/ai-playbook
1•vadimkomis•32s ago•1 comments

ZeroDayRAT malware grants full access to Android, iOS devices

https://www.bleepingcomputer.com/news/security/zerodayrat-malware-grants-full-access-to-android-i...
1•gloxkiqcza•57s ago•0 comments

Eliminating the Wobble in Your Child's Single Bunk Bed

https://dreamhomestore.co.uk/collections/bunk-beds
1•kevinwalton•1m ago•1 comments

Cisco unveils new AI networking chip, taking on Broadcom and Nvidia

https://www.reuters.com/business/media-telecom/cisco-unveils-new-ai-networking-chip-taking-broadc...
1•mgh2•1m ago•0 comments

Vercel's CEO offers to cover expenses of 'Jmail'

https://www.threads.com/@qa_test_hq/post/DUkC_zjiGQh
2•vinnyglennon•1m ago•0 comments

How Is Data Stored?

https://www.makingsoftware.com/chapters/how-is-data-stored
1•tzury•4m ago•0 comments

The Isomorphic Labs Drug Design Engine unlocks a new frontier beyond AlphaFold

https://www.isomorphiclabs.com/articles/the-isomorphic-labs-drug-design-engine-unlocks-a-new-fron...
1•tzury•6m ago•0 comments

Show HN: QAR - MongoDB-style queries for plain JavaScript arrays.

https://github.com/toviszsolt/qar
3•toviszsolt•7m ago•0 comments

Show HN: CloudVac – open-source AWS resource cleaner with cost insights

https://github.com/realadeel/CloudVac
1•proletarian•8m ago•0 comments

Show HN: Good Egg: Trust Scoring for GitHub PR Authors

https://github.com/2ndSetAI/good-egg
2•jeffreysmith•9m ago•0 comments

Ask HN: How to find joy in writing/learning about tech in this AI world?

2•sriram_malhar•10m ago•0 comments

Parse, Don't Validate (2019)

https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
3•shirian•11m ago•0 comments

Using an AI agent to design and ship a Rust diff fingerprinting algorithm

https://argos-ci.com/blog/ai-generated-algorithm-to-production-rust
2•neoziro•11m ago•0 comments

Large Language Models for Mortals book released

https://crimede-coder.com/blogposts/2026/LLMsForMortals
2•apwheele•11m ago•0 comments

What Would Good Agent Productivity Metrics Look Like?

https://www.m16g.com/p/what-would-good-agent-productivity
2•myleshenderson•12m ago•1 comments

AI Isn't Dangerous. Evaluation Structures Are.

2•clover-s•13m ago•1 comments

Solene'%: Declaratively manage containers on Linux

https://dataswamp.org/~solene/2026-02-10-podman-containers-with-systemd.html
2•speckx•14m ago•0 comments

A Bus Route Falls Apart (2025)

https://homesignalblog.wordpress.com/2025/06/29/how-a-bus-route-falls-apart/
2•ciferkey•15m ago•1 comments

Show HN: Pennywize-Conversational budgeting for freelancers with variable income

https://askpennywize.com/
1•croustibat•15m ago•1 comments

Rented Virtue

https://twitter.com/WillManidis/status/2021231199365013730
1•jger15•16m ago•0 comments

Constraint Propagation for Fun

https://eli.li/constraint-propagation-for-fun
1•rickcarlino•17m ago•0 comments

The Agent Internet Is Building Its Immune System in Public

https://www.mnemom.ai/blog/hunter/agent-internet-immune-system
2•alexgarden•18m ago•1 comments

Show HN: Minespheres – a Minesweeper-like game with a twist

https://ittylab.com/minespheres
1•iafan•19m ago•0 comments

MCP Chaos Rig – Open-Source Local MCP Server That Breaks on Demand

https://github.com/Typewise/mcp-chaos-rig
1•Big_Berny•19m ago•0 comments

Scientists camouflage heart rate from invasive radar-based surveillance

https://techxplore.com/news/2026-02-scientists-camouflage-heart-invasive-radar.html
1•Brajeshwar•19m ago•0 comments

Drone-launching underwater drone hitches a ride on ship and sub hulls

https://newatlas.com/military/lockhhed-martin-lamprey-underwater-drone/
1•Brajeshwar•19m ago•0 comments

Pure Blog

https://kevquirk.com/introducing-pure-blog
1•catify•19m ago•0 comments

Ask HN: How should I proceed reading HN?

2•RoadieRoller•20m ago•1 comments