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?

Shelf – Describe a tool in plain English, get a local app forever

https://getmyshelf.app/
1•nagabandaru•1m ago•0 comments

94% companies will keep spending on AI even when it fails

https://readuncut.com/94-will-keep-spending-on-ai-even-when-it-fails/
2•jslat•5m ago•0 comments

Trump directs legal migrants to return to home country to apply for green cards

https://thehill.com/homenews/administration/5891580-legal-migrants-green-cards/
2•KnuthIsGod•7m ago•0 comments

Laravel-Lang Supply Chain Attack

https://github.com/Laravel-Lang/http-statuses/issues/277
1•varunsharma07•10m ago•1 comments

Nano: Coding agent in under 200 lines

https://github.com/pnegahdar/nano
1•kristianp•10m ago•0 comments

The abstractions in SICP need a revisit

https://www.khola.blog/p/sicp-an-architectural-trace-of-pointer
1•bcapchickadee•12m ago•0 comments

Denuvo has been cracked day 1

https://old.reddit.com/r/CrackWatch/comments/1tkvwbb/legobatmanlegacyofthedarkknightvoices38/
1•lazylion2•19m ago•0 comments

The Prehistory of A.I. Slop

https://www.newyorker.com/magazine/2026/05/25/the-prehistory-of-ai-slop
1•fortran77•21m ago•0 comments

Frustrated franchisee sues Pizza Hut over crappy kitchen AI

https://www.theregister.com/ai-ml/2026/05/19/frustrated-franchisee-sues-pizza-hut-over-crappy-kit...
3•gnabgib•25m ago•1 comments

WordPress 7.0

https://wordpress.org/download/releases/7-0/
1•Curiositry•31m ago•0 comments

Show HN: Claude Code for Customer Support

2•darweenist•35m ago•0 comments

SF Bay Ferry

https://sanfranciscobayferry.com/
1•Austin_Conlon•36m ago•0 comments

FBI director's Based Apparel site has been spotted hosting a 'ClickFix' attack

https://www.pcmag.com/news/kash-patels-apparel-site-is-trying-to-trick-visitors-into-installing-m...
20•bilalq•41m ago•4 comments

Why Your Calls to Congress Matter More Than You Think [Video]

https://odysee.com/@techlore:3/why-your-calls-to-congress-matter-more:6
1•Cider9986•43m ago•0 comments

Notiqo – Visual analytics tracking validation directly from Figma

https://notiqoapp.com/
1•abeltarazona•44m ago•0 comments

Is the Government Running a Dragnet on VPN Users? [video]

https://www.youtube.com/watch?v=hV9QEVf6CgI
1•Cider9986•45m ago•0 comments

The Resilience Premium

https://artsabintsev.substack.com/p/the-resilience-premium
1•Arts86•45m ago•0 comments

Show HN: Agentikus

https://agentikus.com
1•Modecir•45m ago•0 comments

Show HN: 24/7 AI Pet Assistant – Pookie by Purr

https://play.google.com/store/apps/details?id=com.nem.purr&hl=en_US
1•mehtapaxshal•46m ago•0 comments

Dopamine drives persistent remodelling of the maternal brain

https://www.nature.com/articles/s41586-026-10509-4
2•bookofjoe•48m ago•0 comments

Ask HN: What to learn and do, that makes me least affected by AI in STEM?

2•s3arch•1h ago•0 comments

Write Thin to Write Fast (2021)

https://breck7.github.io/breckyunits.com/write-thin-to-write-fast.html
1•KTibow•1h ago•0 comments

Students Create a Self-Balancing, Self-Driving Bicycle

https://www.core77.com/posts/144138/Students-Create-a-Self-Balancing-Self-Driving-Bicycle
6•sizzle•1h ago•1 comments

Context windows are the wrong solution to AI memory

https://www.thesecondbrain.dev
2•rahilpirani•1h ago•0 comments

Pynear 2.3 Is Out

3•pcael•1h ago•0 comments

GitHub Actions Is a Trap

https://tylercipriani.com/blog/2026/04/24/on-the-software-supply-chain-doom-spiral/
1•thcipriani•1h ago•0 comments

Robustness Principle

https://en.wikipedia.org/wiki/Robustness_principle
1•bookofjoe•1h ago•0 comments

When Code Is Cheap, Does Quality Still Matter?

https://yusufaytas.com/does-code-quality-still-matter
1•thunderbong•1h ago•0 comments

The Culture of Childhood: We've Almost Destroyed It

https://petergray.substack.com/p/the-culture-of-childhood-weve-almost
2•rendx•1h ago•0 comments

Cards and Stars – Where the Cards Meet the Cosmos

https://cardsandstars.org/
1•Anon84•1h ago•0 comments