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?

Lyra 2.0: Explorable Generative 3D Worlds

https://research.nvidia.com/labs/sil/projects/lyra2/
1•pretext•11s ago•0 comments

Ask HN: Any one use Haskell to paractise their algorithm skill

1•JasonHEIN•33s ago•1 comments

Show HN: Moxn – Git-like version control for collaborative docs

https://moxn.dev/
1•mark-weiss•39s ago•0 comments

Wispr Flow Is Tracking Every App/URL You Visit and Taking Screenshots

https://wensenwu.com/thoughts/wispr-flow-investigation
2•Cveinnt•1m ago•0 comments

We built our AI agent, for analyzing CI logs

https://www.mendral.com/blog/how-we-built-our-ai-agent
1•shad42•2m ago•0 comments

Ask HN: Plenty of organic traffic but struggling to make sales

1•abysmalconvers•2m ago•0 comments

Strategic advantage opportunity – next-gen. observability layer 29 min earlier

https://ravensystems.group
1•ravensystems•4m ago•0 comments

Convert every software into an RL environment

https://cmu-l3.github.io/gym-anything/docs/
2•pHequals7•8m ago•0 comments

Orange Pi 4 Pro Review

https://boilingsteam.com/orange-pi-4-pro-review/
2•ekianjo•8m ago•0 comments

The first spark: what we learned during our first Hackathon

https://www.float.com/blog/first-spark-float-hackathon
1•mooreds•8m ago•0 comments

What's the deal with Alzheimer's disease and amyloid?

https://arstechnica.com/science/2026/04/whats-the-deal-with-alzheimers-disease-and-amyloid/
1•quapster•10m ago•0 comments

Netgear wins first U.S. approval to keep selling foreign-made routers

https://qz.com/netgear-fcc-exemption-foreign-router-ban-041526
1•sbuttgereit•11m ago•0 comments

Allbirds Now Says It's an AI Company, Stock Jumps 800%

https://www.forbes.com/sites/zacharyfolk/2026/04/15/shoemaker-allbirds-suddenly-says-its-an-ai-co...
2•gmays•12m ago•0 comments

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
1•muchael•13m ago•0 comments

SMS delivery isn't deterministic (and most APIs hide why)

https://blog.bridgexapi.io/most-developers-don-t-control-messaging-they-depend-on-it
2•Bridgexapi•13m ago•1 comments

Securing non-human identities: automated revocation, OAuth, scoped permissions

https://blog.cloudflare.com/improved-developer-security/
2•gmays•14m ago•0 comments

Fun with EML (Exp-Minus-Log)

https://mobiarch.wordpress.com/2026/04/15/fun-with-eml-exp-minus-log/
1•leopoldj•15m ago•0 comments

A Roadmap for Building an Extended Standard Library for Rust

https://kerkour.com/rust-extended-standard-library
1•emschwartz•15m ago•0 comments

See 364 prompts that wrote 94% of Buildermark

https://demo.buildermark.dev/projects/u020uhEFtuWwPei6z6nbN
1•davidcann•16m ago•0 comments

Ask HN: Non AI Contributor on Project Teams

1•jemiluv8•16m ago•1 comments

Privacy and security on computing devices need to become far stronger

https://twitter.com/GrapheneOS/status/2044440381803069778
1•Cider9986•16m ago•0 comments

How to Run a Good Startup Advisor Program

https://workinghypotheses.substack.com/p/how-to-run-a-good-startup-advisor
1•rcpike•17m ago•0 comments

Which companies do context engineering well with their MCP servers?

1•naftiko•17m ago•0 comments

Kill the infrastructure Tax: Launch Astro in seconds

https://github.com/datasophie/astro-pergola
1•hudaverdi•18m ago•0 comments

Why build on a single AI provider despite the risk? 3 AI models debated it

https://coldverdict.com/share/078a7c83082c
1•offbeatport•21m ago•0 comments

Sperm whale clicks follow similar rules to human speech

https://phys.org/news/2026-04-sperm-whale-clicks-similar-human.html
2•daoboy•22m ago•0 comments

Scientists Are Using Lightning in a Bottle to Turn Methane into Methanol

https://gizmodo.com/scientists-are-using-lightning-in-a-bottle-to-turn-methane-into-methanol-2000...
2•Brajeshwar•22m ago•0 comments

WhatRuns extension malicious update: Full URL and AI chat exfiltration [video]

https://www.youtube.com/watch?v=UYwUmaVohQk
2•acorn221•22m ago•0 comments

Australia's richest person must share part of her mining fortunes, court rules

https://www.bbc.com/news/articles/cq5990nqjg2o
2•tartoran•23m ago•0 comments

Can AI Be Creative?

https://tombedor.dev/creativity/
1•jjfoooo4•24m ago•0 comments