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?

What do you use as preview environment?

1•Escafati•41s ago•0 comments

Ask HN: What's the most repetitive thing you do with AI that you wish it just re

1•chloecv•5m ago•0 comments

Anthropic open-sourced claude-code

https://github.com/anthropics/claude-code
1•tylerdane•7m ago•0 comments

Scaling tool orchestration data will emerge different intelligence and LLMs

1•arkariarn•8m ago•0 comments

Show HN: Cj – jc rewritten in Rust, 230 parsers, 10x faster

https://github.com/zhongweili/cj
1•zhongwei2049•9m ago•0 comments

Ask HN: Analysis of credit card receipts to show one does not buy alcohol

1•bryanrasmussen•9m ago•0 comments

Delve Removed from Y Combinator

https://www.ycombinator.com/companies/delve
1•carabiner•13m ago•1 comments

50 years of Apple with the only original employee still there

https://appleinsider.com/articles/26/04/02/inside-50-years-of-apple-with-the-only-original-employ...
1•canucker2016•18m ago•0 comments

Heisuke Hironaka, Groundbreaking Mathematician andFields Medalist, Is Dead at 94

https://www.nytimes.com/2026/03/25/science/heisuke-hironaka-dead.html
1•bookofjoe•18m ago•1 comments

Apple's Fitness Chief, Who Was Accused of Harassment, Is Retiring

https://www.nytimes.com/2026/04/01/technology/apples-fitness-chief-who-was-accused-of-harassment-...
2•canucker2016•20m ago•1 comments

Artemis II Orbit Simulator

http://orbitsimulator.com/gravitySimulatorCloud/simulations/1775087816554_artemis_ii_p.html
1•mxfh•28m ago•0 comments

The Case for Economic Growth as the Path to Human Wellbeing

https://lantpritchett.org/the-case-for-sustained-rapid-inclusive-enough-economic-growth-as-a-focu...
2•barry-cotter•30m ago•0 comments

New Advances Bring the Era of Quantum Computers Closer

https://www.quantamagazine.org/new-advances-bring-the-era-of-quantum-computers-closer-than-ever-2...
1•gmays•30m ago•0 comments

NHS staff resist using Palantir software

https://www.theregister.com/2026/04/03/nhs_staff_against_palantir/
3•abdelhousni•30m ago•0 comments

Extracting System Prompt and Model Identity from Telegram's AI. It's Qwen 3.5

https://medium.com/@metraoklam/extracting-system-prompt-model-identity-from-telegrams-ai-feature-...
2•armalko•33m ago•0 comments

The story that rocked the world: Ten years of the Panama Papers, part 1 – ICIJ

https://www.icij.org/investigations/panama-papers/the-story-that-rocked-the-world-ten-years-of-th...
2•abdelhousni•33m ago•0 comments

Trump wants to slash $707M from CISA's budget

https://www.theregister.com/2026/04/03/trump_cisa_budget/
11•abdelhousni•38m ago•1 comments

UN chief tells Trump 'war is not a game show' after US bombs civilian targets

https://www.independent.co.uk/news/uk/politics/iran-war-trump-un-us-civilians-b2951408.html
11•hkhn•40m ago•1 comments

Thomistic prompt chain jailbreaks Gemini self-recognition-12 steps, no code

https://www.youtube.com/watch?v=IeGkdDygfe4
3•jcamlin•43m ago•0 comments

Void: Video Object and Interaction Deletion

https://arxiv.org/abs/2604.02296
1•jonbaer•45m ago•0 comments

Trump budget seeks $1.5T in defense spending alongside cuts in domestic programs

https://apnews.com/article/trump-2027-annual-budget-congress-defense-f95715d838be17afd9799208cd31...
9•clausewitz•45m ago•0 comments

Native Americans shaped gambling and probability long before the Old World

https://libarts.source.colostate.edu/how-native-americans-shaped-gambling-and-probability/
1•gnabgib•48m ago•0 comments

Show HN: Libgoc – Go-like CSP-style HTTP client/server library for C

https://github.com/divs1210/libgoc/blob/main/HTTP.md
1•divs1210•49m ago•0 comments

Native Americans had dice 12,000 years ago

https://www.nbcnews.com/science/science-news/native-americans-dice-games-probability-study-rcna26...
5•delichon•51m ago•1 comments

Delve removed from YC portfolio website

https://web.archive.org/web/20260301045026/https://www.ycombinator.com/companies/delve
7•cyrusradfar•53m ago•1 comments

Under the Skin of America's Humanoid Robots: Chinese Technology

https://www.wsj.com/tech/under-the-skin-of-americas-humanoid-robots-chinese-technology-27dd4fdf
1•qwikhost•54m ago•0 comments

Chinese chip firms hit record high revenue driven by the AI boom and U.S. curbs

https://www.cnbc.com/2026/04/03/chinese-chip-firms-record-revenue-ai-boom-us-curbs.html
3•qwikhost•56m ago•0 comments

Show HN: Meetrics – Track anything, correlate anything, ask your data questions

https://github.com/sergeybok/meetrics-support/blob/main/BLOG/CANCER.md
1•sergeybok•57m ago•0 comments

How Far Would You Go to Learn from Werner Herzog?

https://www.nytimes.com/2026/04/03/style/werner-herzog-workshop-filmmakers.html
1•inatreecrown2•57m ago•0 comments

Show HN: DotReader – connects ideas across your books automatically

https://dotreader.info
2•efecerre•1h ago•1 comments