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?

Enabling Codex to Analyze Two Decades of Hacker News Data

https://modolap.com/publication/hn-analysis-1
1•ronfriedhaber•7m ago•0 comments

Mix-and-match synthesis of 3D small molecules

https://www.nature.com/articles/d41586-026-00809-0
1•salkahfi•7m ago•0 comments

$200 oil isn't as crazy as it sounds

https://www.cnn.com/2026/04/02/business/price-200-oil-gas-iran
1•dabinat•11m ago•0 comments

Pro-XSLT.js – fast and lightweight JavaScript library implementing XSLT 1.0

https://github.com/hbi99/pro-xslt
1•hbi99•12m ago•0 comments

Half of social-science studies fail replication test in years-long project

https://www.nature.com/articles/d41586-026-00955-5
1•MrBuddyCasino•16m ago•0 comments

Eli Lilly's obesity pill approved by FDA, setting up Novo Nordisk competition

https://www.statnews.com/2026/04/01/eli-lilly-obesity-pill-approved-orforglipron-foundayo/
2•andsoitis•17m ago•0 comments

Ask HN: Has anyone became successful on their own?

3•Nair0•24m ago•1 comments

100 Prisoners Problem

https://en.wikipedia.org/wiki/100_prisoners_problem
2•djoldman•25m ago•1 comments

UK SATS Exam Papers

https://www.satspapers.org.uk/Page.aspx?TId=5
1•alt227•25m ago•0 comments

Block – From Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
3•abdelhousni•25m ago•1 comments

Data Science Weekly – Issue 645

https://datascienceweekly.substack.com/p/data-science-weekly-issue-645
1•sebg•27m ago•0 comments

Army approves M111, first new lethal hand grenade since 1968

https://www.army.mil/article/290962/army_approves_m111_first_new_lethal_hand_grenade_since_1968
1•campuscodi•28m ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•abhisek•29m ago•0 comments

DMCA-resistant Claude Code source code

https://codeberg.org/tornikeo/claude-code
1•tornikeo•29m ago•1 comments

Chinese chipmakers claim nearly half of local market as Nvidia's lead shrinks

https://www.reuters.com/world/china/chinese-chipmakers-claim-nearly-half-of-local-market-nvidias-...
1•qwikhost•36m ago•0 comments

Baby's Second Garbage Collector

https://www.matheusmoreira.com/articles/babys-second-garbage-collector
1•matheusmoreira•38m ago•0 comments

Show HN: I built a DNS resolver from scratch in Rust – no DNS libraries

https://github.com/razvandimescu/numa
5•rdme•41m ago•3 comments

High‑Performance JavaScript Data Grid for Data Apps

https://blog.webix.com/javascript-data-grid-webix-review/
1•jswebdev•45m ago•0 comments

Please stop flagging everything going against Israel

8•throwaw12•46m ago•4 comments

Almighty Lisp: Lisp and Emacs Essentials Book

https://almightylisp.com/
1•nemoniac•47m ago•0 comments

We built Postgres compatibility for our database and made it reusable libraries

https://greptime.com/blogs/2026-04-01-greptimedb-postgresql-compatibility
2•sunng•48m ago•0 comments

Most Claude Code advice is measurably wrong

https://old.reddit.com/r/ClaudeAI/comments/1s8mbqm/i_read_17_papers_on_agentic_ai_workflows_most/
3•DeathArrow•49m ago•1 comments

Article about simple LSB steganography in JavaScript

https://www.yourdev.net/blog.php?post=steganography-hiding-data-in-images
1•ernos•56m ago•1 comments

Desktop pet companion built from Claude Code's leaked /buddy system

https://github.com/StartripAI/buddyClaw
1•AlfredHua1•56m ago•0 comments

Show HN: Osint of I-80 for EV site selection. Finding 10MW spots

https://airtable.com/appqWMTNS1Sz0mmeM/shrs17SlKRpvBvLOa
1•shegby•58m ago•0 comments

The ∞-Oreo

https://arxiv.org/abs/2604.00435
4•nill0•1h ago•0 comments

Men are ditching TV for YouTube as AI usage and social media fatigue grow

https://www.ofcom.org.uk/media-use-and-attitudes/media-habits-adults/passive-social-media-use-ai-...
3•bundie•1h ago•0 comments

China became a global pharmaceutical powerhouse

https://cepr.org/voxeu/columns/free-rider-innovator-how-china-became-global-pharmaceutical-powerh...
1•hunglee2•1h ago•0 comments

Solar saved Europe €3B in fossil fuel imports in March

https://www.euronews.com/2026/04/01/solar-saved-europe-3bn-in-fossil-fuel-imports-in-march-which-...
2•vrganj•1h ago•0 comments

PowerChest: macOS app for people who miss old school Powertoys

https://powerchest.app
1•baebeegeezus•1h ago•0 comments