frontpage.
newsnewestaskshowjobs

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?

Reusing obsolete Windows 10 PCs for on-premises large language model inference

https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1911927/full
1•TMWNN•1m ago•0 comments

Reachability and error diagnosis in LR(1) parsers [pdf]

https://gallium.inria.fr/~fpottier/publis/fpottier-reachability.pdf
1•fanf2•4m ago•0 comments

Abbe's Diffraction Theory of Microscopic Perception (+ Intro to Fourier Optics) [video]

https://www.youtube.com/watch?v=Kj4zk91TVwo
1•joebig•4m ago•1 comments

OpenEngine CLI v1.5

https://openengine.cc/docs/cli-reference/
1•aerxes•4m ago•1 comments

Agent-history CLI – Fast OMZ/Bash cmd to jump between recent AI coding sessions

https://github.com/aaronbronow/agent-history
1•aaronbronow•4m ago•0 comments

Agents Behaving Badly: engineering the inner loop to preserve review attention

https://bradleygibbs.dev/posts/agents-behaving-badly/
1•bradleygibbs•10m ago•0 comments

Global Innovation Index 2026 [pdf]

https://www.wipo.int/web-publications/global-innovation-index-2026/assets/110523/2000-2026-en-glo...
1•gmays•12m ago•0 comments

A hand-crafted, CPU-only agent clears all 25 public ARC-AGI-3 games

https://zenodo.org/records/23269727
2•SingarajB•15m ago•0 comments

Show HN: Reducing an OpenAI proof by 25% in a few hours

https://github.com/offline-ant/wiggums-proof-loop
1•athrowaway3z•16m ago•0 comments

Tutorial for Septabee, a free DAW been making for over 20k hours [video]

https://www.youtube.com/watch?v=lW8Z98pXuSE
1•hgo•21m ago•0 comments

Bag of Decisions Reranker

https://softwaredoug.com/blog/2026/10/08/bag-of-decisions
2•JohnBerryman•23m ago•0 comments

Show HN: Elements – Build and deploy web apps with your agent, on your machines

https://elements.dev/
1•mathec•23m ago•0 comments

Apple Shares Slide After Report of iPhone 18 Pro Component Order Cuts

https://www.gadgetreview.com/apple-shares-slide-after-report-of-iphone-18-pro-component-order-cuts
2•PicardManeuver•25m ago•0 comments

Show HN: CAD Studio – Describe a part, get parametric CAD you can print (macOS)

https://github.com/filippofinke/cad-studio
2•filippofinke•28m ago•0 comments

Gotcha: GitHub Custom Properties are public

https://www.jvt.me/posts/2026/10/08/github-custom-properties-public/
2•zdw•28m ago•0 comments

My Gen-Z Intern Thinks Showing Up to Work Is Optional [video]

https://www.youtube.com/watch?v=I0jZry5CUYs
1•donsupreme•30m ago•1 comments

The keynote I thought I was going to give at Rails World

https://robbyonrails.com/articles/2026/10/09/the-keynote-i-thought-i-was-going-to-give/
2•robbyrussell•31m ago•0 comments

Lexaro, a word-ladder game and the graph-theory problem of generating fair games

https://lexarogame.app/
2•gordonbain•32m ago•0 comments

An open record of the Erdos problems

https://github.com/plasma-ai/erdos
1•ryanpettry•32m ago•0 comments

Show HN: Organize Tabs – Chrome extension that dedupes PRs, tickets and profiles

https://www.jontsai.com/2026/10/10/organize-tabs-2-0
1•jontsai•36m ago•0 comments

Problems in 22 scientific fields had solutions hiding in plain sight. An AI has

https://www.science.org/content/article/problems-22-scientific-fields-had-solutions-hiding-plain-...
2•sbulaev•38m ago•0 comments

You Don't Understand What Just Happened to Mathematics [video]

https://www.youtube.com/watch?v=KqiDqJMxg6o
4•fabianhjr•40m ago•0 comments

No Man Is an Island

https://borretti.me/article/no-man-is-an-island
47•zetalyrae•42m ago•16 comments

Me, but You, but Me (2010)

https://blog.anaisbetts.org/posts/me-but-you-but-me/
3•NaOH•47m ago•0 comments

The One Question I Can't Stand at Restaurants

https://www.theatlantic.com/culture/2026/10/restaurant-phone-number-question/688926/
2•samizdis•47m ago•0 comments

R&D doesn't pay pharma shareholders. What does?

https://www.baybridgebio.com/blog/pharma_returns
2•aaavl2821•48m ago•0 comments

ClickHouse outcompresses Parquet: Surprises from our migration

https://tomalard.github.io/posts/clickhouse-outcompresses-parquet-surprises-from-our-migration/
4•TomAlard•48m ago•0 comments

Netflix plans to cut 5% of its workforce

https://www.reuters.com/business/media-telecom/netflix-plans-cut-5-its-workforce-puck-news-report...
14•theanonymousone•49m ago•0 comments

Making a not-jailbreak in 3 weeks

https://www.hrtowii.dev/blog/making-a-not-jailbreak-in-3-weeks/
1•davikr•50m ago•0 comments

Ask HN: What is your favorite book of all time, and why?

2•chistev•51m ago•2 comments