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?

Why I Wrote Safescript

https://medium.com/@uriv/safescript-a-programming-language-for-ai-era-e6f018c4b3f6
1•uriva•4m ago•0 comments

Your Future job will be to keep AI on task

https://www.noahpinion.blog/p/your-future-job-will-be-to-keep-ai
1•thm•4m ago•0 comments

Propuesta TLBIC v4.1 – «La sabiduría de dialogar con un espejo imperfecto

1•michikawa59•5m ago•0 comments

DTensor, Correctness and the Costs of Abstraction

https://runwayml.com/news/dtensor-distributed-training
1•jxmorris12•7m ago•0 comments

Safescript – A Language for AI Era

https://safescript.cc/
2•uriva•7m ago•0 comments

Pimmur, can LLM simulate human collective behavior?

https://arxiv.org/abs/2509.18052
1•xiaoluolyg•15m ago•0 comments

A survey of HTTP 'server' headers

https://alex.keeling.me/blog/server-survey.html
1•TwinOaks65•15m ago•0 comments

AIPass – Persistent agent workspace with identity, memory, and email

https://github.com/AIOSAI/AIPass
1•AIOSAI•16m ago•0 comments

Stratasys snaps up Markforged in $42.5M deal

https://all3dp.com/6/stratasys-snaps-up-markforged-in-42-5m-deal/
1•iancmceachern•17m ago•0 comments

Progressives Are Listening to the Wrong People on A.I

https://www.nytimes.com/2026/05/26/opinion/progressives-left-ai.html
3•cratermoon•19m ago•0 comments

Are your creative projects livestock or pets?

https://herbertlui.net/are-your-creative-projects-livestock-or-pets/
2•herbertl•21m ago•0 comments

Show HN: Teleport-env – <500ms stateful rollbacks for AI agents via CRIU

https://github.com/JaiCode08/teleport-env
1•Jainish08•29m ago•0 comments

Unlocking Liquidity on Prediction Markets [pdf]

https://docs.lattica.finance/unlocking-liquidity.pdf
1•stephenflanders•29m ago•0 comments

Love Language – The undying dream of Esperanto

https://harpers.org/archive/2026/06/love-language-katie-thornton-esperanto/
2•pseudolus•31m ago•0 comments

Show HN: What 1k Harness Experiments Taught Me About Self-Improving Agents

https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/
1•megadragon9•31m ago•0 comments

Meta to start testing AI subscription services

https://www.cnbc.com/2026/05/27/meta-testing-ai-subscription-services-cheapest-plan-at-7point99-a...
1•mattas•31m ago•0 comments

Google engineer charged with insider trading after making $1.2M on Polymarket

https://techcrunch.com/2026/05/27/google-engineer-charged-with-insider-trading-after-making-1-2m-...
4•evo_9•35m ago•0 comments

Bubbles – an HN-like link aggregator for the non-tech internet

https://bubbles.town/
1•Curiositry•36m ago•0 comments

Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
2•doppp•37m ago•0 comments

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub and Why Zig Isn't 1.0 [video]

https://www.youtube.com/watch?v=iqddnwKF8HQ
5•doppp•38m ago•0 comments

Dario Amodei warned of an AI white-collar bloodbath, now he's changing narrative

https://fortune.com/2026/05/05/dario-amodei-jevons-paradox-will-ai-wipe-out-white-collar-jobs/
3•gmays•39m ago•0 comments

Microsoft's New Governance Toolkit MCP Extensions

https://medium.com/c-sharp-programming/securing-your-net-f2020c72027e
1•sukhpinder0804•39m ago•0 comments

Do they know we can tell it's AI slop?

5•jwsteigerwalt•40m ago•2 comments

Connectix RAM Doubler

https://computeradsfromthepast.substack.com/p/connectix-ram-doubler
1•myth_drannon•43m ago•0 comments

Building complex functions out of real parts

https://www.johndcook.com/blog/2026/05/22/complex-functions-real-parts/
1•ibobev•45m ago•0 comments

Real and Imaginary Parts

https://www.johndcook.com/blog/2026/05/23/real-and-imaginary-parts/
2•ibobev•46m ago•0 comments

Fitting the parameters of a Besace curve like the Meta logo

https://www.johndcook.com/blog/2026/05/27/the-meta-logo-and-fitting-besace-curves/
1•ibobev•46m ago•0 comments

Tabby's Star (KIC 8462852)

https://en.wikipedia.org/wiki/Tabby%27s_Star
2•Jimmc414•48m ago•0 comments

Language Modeling Materializes a World Model of Protein Biology [pdf]

https://biohub.ai/papers/esm_protein.pdf
1•y1zhou•51m ago•0 comments

Modos's open-hardware 13.3″ color e-paper monitor goes live on Crowd Supply

https://www.crowdsupply.com/modos-tech/modos-flow
2•Curiositry•53m ago•0 comments