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?

Protect Your Shed

https://dylanbutler.dev/blog/protect-your-shed/
1•baely•1m ago•0 comments

Every Barrier Between AI Agents and Autonomy – A Practical Map

https://vibeagentmaking.com/blog/every-barrier-between-agents-and-autonomy/
1•vibeagentmaking•1m ago•0 comments

LLM scraper bots are overloading acme.com's HTTPS server

http://acme.com/updates/archive/229.html
2•mjyut•2m ago•0 comments

Trump and Iran announce two-week ceasefire that will open Strait of Hormuz

https://www.ft.com/content/2868ed5b-865f-4491-a78e-c84967d50c34
1•zlu•2m ago•0 comments

The Kernel Panicked (Apologies to the Front Fell Off)

https://twitter.com/morphillogical/status/2041711892159484172
1•rictic•3m ago•0 comments

Semiconductor Fabs III: The Data and Automation

https://nomagicpill.substack.com/p/semiconductor-fabs-iii-the-data-and
1•nomagicpill•3m ago•1 comments

Kennedy sets September deadline to identify cause of rising US autism rates (2025)

https://www.reuters.com/business/healthcare-pharmaceuticals/health-secretary-kennedy-says-us-will...
2•rzzzwilson•4m ago•1 comments

Show HN: Chrome Developer Tools on Android

1•rasengan•8m ago•0 comments

The Fundamentals Still Haven't Changed: Typewriters to Tokens

https://bunworkspaces.com/blog/typewriters-to-tokens
1•smorsic•11m ago•1 comments

Discovered This Baby

https://plannex.app/
1•Novakinify•16m ago•0 comments

After 6 months of solo building, I just launched my first SaaS

https://cogitly.com/
1•behnamsherafat•17m ago•0 comments

Hungary and Russia struck 12-point plan for closer ties, documents show

https://www.politico.eu/article/hungary-and-russia-struck-12-point-plan-for-closer-ties-documents...
2•JumpCrisscross•20m ago•1 comments

Free 1700 tailwind blocks. Enjoy

https://opentailwind.dev/
2•babacklindo•22m ago•0 comments

Pydantic-resolve – define relationships once, reuse across REST, GraphQL and MCP

https://allmonday.github.io/pydantic-resolve/
1•tank-34•23m ago•0 comments

OpenAI says its new model GPT-2 is too dangerous to release (2019)

https://slate.com/technology/2019/02/openai-gpt2-text-generating-algorithm-ai-dangerous.html
40•surprisetalk•24m ago•3 comments

US Electricity Price Heat Map

https://electricity.heatmap.news/
1•toomuchtodo•24m ago•2 comments

Financial Information for ICANN

https://www.icann.org/resources/pages/governance/financials-en
1•greyface-•26m ago•0 comments

Show HN: Replaced Neo4j with pure vector search for Graph RAG

https://github.com/zilliztech/vector-graph-rag
1•zhangchen•26m ago•0 comments

Why the Persian Gulf has more oil and gas than anywhere else on Earth

https://theconversation.com/why-the-persian-gulf-has-more-oil-and-gas-than-anywhere-else-on-earth...
1•pseudolus•28m ago•0 comments

Maine Is About to Become the First State to Ban New Data Centers

https://www.wsj.com/us-news/maine-data-center-ban-e768fb18
3•toomuchtodo•28m ago•0 comments

Sam Altman on Building the Future of AI [video]

https://forum.openai.com/public/videos/event-replay-sam-altman-on-building-the-future-of-ai-2026-...
1•erickhill•31m ago•0 comments

Phillips Machine

https://en.wikipedia.org/wiki/Phillips_Machine
2•curio_Pol_curio•34m ago•0 comments

Show HN: Mdstitch – NPM for Markdown Files

https://github.com/tannerjames711/mdstitch
1•tannerjames711•34m ago•0 comments

Bill Phillips used flowing water to model the economy

https://www.npr.org/sections/planet-money/2026/04/07/g-s1-116575/how-bill-phillips-used-flowing-w...
4•curio_Pol_curio•36m ago•0 comments

Visual Hallucinations in Psychedelics vs. Schizophrenia

https://psychedelirium.substack.com/p/pharmacology-vs-pathology-of-altered
1•yenniejun111•45m ago•0 comments

'This Is Just Not How the Human Race Should Operate,' Says US Senator

https://www.commondreams.org/news/chris-murphy-trump-threat
14•hkhn•48m ago•2 comments

OpenSource: Native screen recorder extension for Chrome

https://github.com/mbarlow/chrome-recorder
1•moo-jason•52m ago•1 comments

Larger and more instructable language models become less reliable

https://pmc.ncbi.nlm.nih.gov/articles/PMC11446866/
4•gmays•52m ago•0 comments

America: A Bet Worth Taking If You're Built for It

https://code2net.com/usa
2•xyz_ielh•1h ago•3 comments

Nodepad

https://www.nodepad.space/
2•skogstokig•1h ago•0 comments