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

Ask HN: How did you learn to code?

1•chistev•4m ago•0 comments

The State of OSS Funding data [pdf]

https://github.com/andrew/state-of-oss-funding/blob/032d4b6134b36ea3c0aa378ee946ad4f77a2ac79/slid...
1•8organicbits•8m ago•0 comments

Bulgaria and the Euro

https://en.wikipedia.org/wiki/Bulgaria_and_the_euro
1•tosh•9m ago•0 comments

Why many projects fail before execution begins

1•BenWebbProject•10m ago•0 comments

AI Disclosure Under U.S. Securities Law

https://zenodo.org/records/18113674
1•businessmate•12m ago•1 comments

Challenging algorithms and data structures every programmer should try (2022)

https://austinhenley.com/blog/challengingalgorithms.html
1•vismit2000•12m ago•0 comments

JShell Tutorial

https://cr.openjdk.org/~rfield/tutorial/JShellTutorial.html
1•wolfi1•15m ago•0 comments

Professional College Basketball Players??

https://www.brianvsutah.com/p/professional-college-basketball-players
1•bjshaw73•22m ago•0 comments

Atmospheric Computing

https://www.pfrazee.com/blog/atmospheric-computing
1•danabramov•22m ago•0 comments

Quantum-floor compression: Achieving GPT-4 capability at 1/120th the model size [pdf]

https://oroboroslab.github.io/quantum-floor-preview.pdf
2•cybertax•25m ago•2 comments

Claude Code in Action – Anthropic Official Claude Code Course

https://anthropic.skilljar.com/claude-code-in-action
2•Lwrless•30m ago•0 comments

Show HN: GitHub Action for AI/LLM Security Scanning in CI/CD

https://github.com/XSource-Sec/agent-audit-action
2•xsourcesec•40m ago•1 comments

Semantica – Open-source semantic layer and GraphRAG framework

5•kaifahmad1•41m ago•0 comments

The dumbest things that happened in tech this year

https://techcrunch.com/2025/12/31/the-dumbest-things-that-happened-in-tech-this-year/
3•jnord•42m ago•0 comments

RGB Mini-LED will transform the premium TV landscape in 2026

https://www.techradar.com/televisions/how-rgb-mini-led-will-transform-the-premium-tv-landscape-in...
2•ksec•43m ago•0 comments

Show HN: Collect and analyze Postmark Time to Inbox data

https://github.com/jonasmalacofilho/postmark-tti-histogram
2•jonasmalaco•43m ago•0 comments

China accuses Netherlands of making 'mistakes' over chipmaker Nexperia

https://www.cnbc.com/2025/12/31/china-accuses-netherlands-of-making-mistakes-over-chipmaker-nexpe...
2•jnord•44m ago•0 comments

Carnegie Mellon's Camera Lens Breakthrough Eliminates Background Photo Blur

https://hothardware.com/news/carnegie-mellon-lens-breakthrough
3•gslin•47m ago•0 comments

Show HN: Video to JPG – Extract frames in browser with blur detection

https://videotojpg.com
2•charlesding2024•54m ago•1 comments

2026 Predictions Scorecard

https://rodneybrooks.com/predictions-scorecard-2026-january-01/
4•calvinfo•57m ago•0 comments

How does Node.js load its built-in/native modules? (2021)

https://joyeecheung.github.io/blog/2021/07/06/how-does-node-js-load-its-builtins-native-modules/
2•aragonite•58m ago•0 comments

Show HN: A minimalist, ad-free alternative for receiving SMS online

1•mambazz•59m ago•0 comments

Dear Apple, Please Fix iOS Music

https://davids.town/dear-apple-please-fix-ios-music
3•DavidPiper•1h ago•0 comments

Get ready for the $5090 5090: GPU prices expected to soar next year

https://boingboing.net/2025/12/31/get-ready-for-the-5090-5090-gpu-prices-expected-to-soar-next-ye...
2•perihelions•1h ago•0 comments

Show HN: Importguard – Measure and enforce Python import-time behavior in CI

https://github.com/AryanKumar1401/importguard
2•AryanKumar1401•1h ago•0 comments

The Cost of a Closure in C: The Rest

https://thephd.dev/the-cost-of-a-closure-in-c-c2y-followup
3•ingve•1h ago•0 comments

Freestyle Linked Lists Tricks

https://nullprogram.com/blog/2025/12/31/
5•ingve•1h ago•0 comments

Washington Childcare Subsidies Raise Fraud Concerns After Minnesota Probe

https://x.com/i/trending/2005454604394222016
3•silexia•1h ago•1 comments

HTML Scratchpad

https://qeditor.dev/
1•dpweb•1h ago•0 comments

Poor sleep health is associated with older brain age

https://www.thelancet.com/journals/ebiom/article/PIIS2352-3964(25)00385-8/fulltext
3•jnord•1h ago•0 comments