frontpage.
newsnewestaskshowjobs

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?

Vieta's Formulas

https://en.wikipedia.org/wiki/Vieta%27s_formulas
1•vismit2000•2m ago•0 comments

More Tree-sitter, more neocaml, more elisp

https://lambdafoo.com/posts/2026-09-14-more-trees-more-neocaml.html
1•RohanAdwankar•3m ago•0 comments

How to keep a knowledge base up to date when the product changes every day

https://frigade.com/blog/how-to-keep-a-knowledge-base-up-to-date
1•pancomplex•5m ago•0 comments

Emily St. John Mandel on Writing a Novel of Dystopian Counterlives

https://lithub.com/emily-st-john-mandel-on-writing-a-novel-of-dystopian-counterlives/
1•mooreds•7m ago•0 comments

The proof passed. Can you see why it works?

https://github.com/8Braid/8db-navier-stokes-evidence/blob/main/explainability/article.md
1•ashdee•12m ago•0 comments

Show HN: A chess analyzer that runs in the browser

https://github.com/huytd/whyblunder/
1•huydotnet•13m ago•0 comments

A better way of blocking macOS updates

https://zoey-on-github.github.io/blog/updates.html
2•juliethefoxcoon•15m ago•0 comments

Ask HN: eBPF verifier packet tracking boundaries under volumetric socket drops?

1•devloperdevesh•21m ago•0 comments

Nvidia and CrowdStrike Develop New Cybersecurity AI Models

https://www.wsj.com/cio-journal/nvidia-and-crowdstrike-develop-new-cybersecurity-ai-models-937bb2aa
1•gmays•23m ago•0 comments

Steve Bannon and Bernie Sanders Condemn Tech 'Oligarchs' and Demand A.I. Reforms

https://www.nytimes.com/2026/09/15/us/steve-bannon-bernie-sanders-ai.html
3•mikhael•26m ago•0 comments

Founding documents from companies that shaped industries

https://relentless-investments.com/library
1•rafaelc•26m ago•0 comments

Waymo to start Tokyo robotaxi service next year in Asia push

https://www.japantimes.co.jp/business/2026/09/15/companies/waymo-tokyo-robotaxi-launch/
1•mikhael•29m ago•0 comments

Interview with Paul Bogen [video]

https://www.youtube.com/watch?v=GJQlzbhai-w
1•oriettaxx•33m ago•0 comments

Divide, Consult, Conquer: Capability Laundering Through Aligned LLMs

https://arxiv.org/abs/2609.15383
2•sbulaev•35m ago•0 comments

Singapore launched a novel five-year national campaign to nurture reading habits

https://www.cnn.com/2026/09/15/asia/singapore-reading-campaign-intl-hnk-dst
2•kelt•39m ago•0 comments

Show HN: Biom – A visual workspace where your AI agents' work lands

https://www.biom.dev/
3•jduhking•40m ago•0 comments

Hackaday Europe 2026: Bare Metal Made Easy

https://hackaday.com/2026/09/15/hackaday-europe-2026-bare-metal-made-easy/
3•geoffbp•43m ago•0 comments

Show HN: Plurnk (Yet *Another* AI Harness)

https://github.com/plurnk/plurnk
1•wikitopian•45m ago•0 comments

Independent Lens – Ghost in the Machine: AI's troubled history, current impacts

https://www.pbs.org/video/ghost-in-the-machine-nynp3f/
3•frmersdog•51m ago•1 comments

Ask HN: Who has been contacted by 5+ hiring platforms?

2•Rapzid•52m ago•3 comments

Is There Anything Google's Fruit Fly Brain Can't Do?

https://www.nytimes.com/2026/09/15/technology/fruit-fly-brain-map-google.html
5•xnx•53m ago•0 comments

Callum Williams on Cybersecurity Prices

https://marginalrevolution.com/marginalrevolution/2026/09/callum-williams-on-cybersecurity-prices...
3•paulpauper•1h ago•0 comments

Probably the best laptop with Linux support and Local LLM AI [video]

https://www.youtube.com/watch?v=it7TAwjwH5E
3•grigio•1h ago•0 comments

Atlas-Finance: Evaluating AI Agents Inside a Bank

https://joinhandshake.com/research/benchmarks/articles/atlas-finance-evaluating-ai-agents-inside-...
2•cjbarber•1h ago•1 comments

Disney's Films Used to Look Different

https://animationobsessive.substack.com/p/disneys-films-used-to-look-different
3•ummonk•1h ago•0 comments

1F3D9: A world where anyone's AI agent can go to live without humans

https://1f3d9.com/window/map
2•twamd•1h ago•2 comments

Nobody Needs a Human Router

https://theengineeringmanager.substack.com/p/nobody-needs-a-human-router
1•gpi•1h ago•0 comments

Show HN: Agenttik – work on multiple projects in parallel with AI agents

https://github.com/pausan/agenttik
3•psanchez•1h ago•0 comments

Faraday Security Enforcing and HyDE Recall

https://medium.com/@vektormemory/vektor-slipstream-real-tool-calling-faraday-security-enforcing-h...
1•vektormemory•1h ago•0 comments

Show HN: Open-source tool to sell your Claude Code and Codex sessions

https://github.com/cookiy-ai/sell-sessions-skill
1•YouchaoDong•1h ago•1 comments