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•6mo 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•6mo 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?

What accounting software do you use?

1•john675645•41s ago•0 comments

Evolution Strategies at the Hyperscale

https://eshyperscale.github.io/
1•E-Reverance•3m ago•0 comments

Why Vinted Is Getting into the Payments Business

https://www.vogue.com/article/why-vinted-is-getting-into-the-payments-business
1•petethomas•8m ago•0 comments

30k watt light bulb experiments

https://www.youtube.com/watch?v=zr-eZ_pLTNI
1•aeonfox•9m ago•0 comments

Act-1: A Robot Foundation Model Trained on Zero Robot Data

https://www.sunday.ai/journal/no-robot-data
1•walterbell•17m ago•0 comments

Hyperscalers Are Hard

https://shvbsle.in/hyperscalers-are-hard/
1•dropbox_miner•23m ago•0 comments

Researchers at Tokamak Energy

https://twitter.com/ExploreCosmos_/status/1991377648384155757
2•keepamovin•24m ago•0 comments

Quantum computing: too much to handle

https://scottaaronson.blog/?p=9325
2•qnleigh•24m ago•1 comments

Xhisper – Dictation for Linux

https://github.com/imaginalnika/xhisper
2•cc_ashby•29m ago•0 comments

Zork is now open source

https://blog.zarfhome.com/2025/11/zork-is-open-source
3•susam•31m ago•1 comments

Wall Street is banking on too many Federal Reserve rate cuts, Vanguard warns

https://www.ft.com/content/22b5e0e8-1db9-44c3-bade-11269f2fa670
2•zerosizedweasle•33m ago•0 comments

Cool similarities between chaldean and arabic

https://nasmaofny.com/similarities-between-aramaic-and-arabic/
1•marysminefnuf•36m ago•0 comments

Share with everyone the trialable Nano Banana Pro website – VGenie

https://vgenie.ai/image-models/nano-banana-pro
1•funny_ai•37m ago•1 comments

Bridging GNNs and LLMs: A Survey and Unified Perspective

https://infoscience.epfl.ch/server/api/core/bitstreams/7e6f86c2-04cf-4866-8d2e-5ad08272ca0b/content
2•sadid•44m ago•0 comments

Zoox kicks off robotaxi rides in San Francisco

https://www.cnbc.com/2025/11/18/zoox-begins-offering-robotaxi-rides-in-san-francisco-t.html
2•gmays•47m ago•0 comments

Swedish musician teaches a highly intelligent octopus to play piano

https://www.classicfm.com/music-news/videos/swedish-musician-teaches-octopus-piano/
2•NoRagrets•50m ago•3 comments

Show HN: Pynote – Embed Python code and editor, notebooks in any HTML page

https://getpynote.net/
2•laurentabbal•55m ago•0 comments

New video shows solar thermal water tank manufacturing in Hawaii

https://www.youtube.com/watch?v=6MI0ZMWlhmw
1•LMSolar•1h ago•1 comments

AI in Practice Survey

https://theoryvc.com/blog-posts/ai-in-practice-survey
3•gmays•1h ago•0 comments

Show HN: Nano Banana Pro – Real Physics, Real Lighting, 4K Quality in Seconds

https://nanobanana-pro.co/
2•nicohayes•1h ago•3 comments

A "cooked" Computer Science grad's perspective

https://pomogaev.ca/cooked/
3•arrakark•1h ago•2 comments

Meta Sam 3D – Image to Mesh Model

https://ai.meta.com/sam3d/
1•tsnl•1h ago•0 comments

Former Google chief accused of spying on employees through account 'backdoor'

https://www.latimes.com/business/story/2025-11-20/former-google-chief-accused-of-spying-on-employ...
5•coloneltcb•1h ago•1 comments

Show HN: Dream Decoder AI – Jungian dream analysis with 3D visualization

1•brandonmillsai•1h ago•0 comments

How Children die from Indian cough syrup

https://www.reuters.com/business/healthcare-pharmaceuticals/safety-lapses-weak-oversight-how-chil...
4•petethomas•1h ago•0 comments

US cancels October's employment report after shutdown prevented data collection

https://www.reuters.com/world/us-canceling-octobers-employment-report-after-shutdown-prevented-da...
5•mgh2•1h ago•1 comments

Show HN: Tablecraft – instant in-browser table converter/exporter

https://tablecraft-web.vercel.app/
2•tultra•1h ago•2 comments

PolyAgora: A natural-language multi-agent OS built through conversation

https://github.com/Takeshi-Sakamoto5/PolyAgora
1•takeshi_sakamo•1h ago•1 comments

The Saudification of America is under way

https://www.theguardian.com/commentisfree/2025/nov/18/saudi-arabia-america-jamal-khashoggi
5•JumpCrisscross•1h ago•3 comments

Gesture Control for Smartwatches: Would Anyone Use This?

3•WayneFung1992•1h ago•0 comments