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

How to Solve the Tenor Shortage

https://www.economist.com/leaders/2026/02/12/how-to-solve-the-tenor-shortage
1•petethomas•1m ago•0 comments

What does the formation of a black hole look like? [video]

https://www.youtube.com/watch?v=oRSmMDH11Ss
1•ubercow13•2m ago•0 comments

Show HN: HareBoy – A Game Boy emulator written in Hare

https://github.com/drpaneas/hareboy
1•drpaneas•6m ago•0 comments

Underwear optional? The health pros and cons of going commando

https://www.theguardian.com/wellness/2026/feb/10/underwear-commando-pros-cons
1•andsoitis•9m ago•0 comments

Updated GitHub status page experience

https://github.blog/changelog/2026-02-13-updated-status-experience/
1•donutshop•12m ago•0 comments

The terrifying and efficient world of Olympic ski airlifts

https://www.latimes.com/sports/olympics/story/2026-02-13/inside-terrifying-efficient-world-of-oly...
2•bookofjoe•16m ago•1 comments

Four new astronauts arrive via SpaceX rocket at International Space Station

https://www.theguardian.com/science/2026/feb/14/international-space-station-full-crew
2•andsoitis•17m ago•0 comments

What happens when you put Claude, GPT, Grok, and DeepSeek in the same room?

https://warpmode.io
1•spranab•22m ago•1 comments

Ask HN: Alternatives to the Big 4 for SoC 2 compliance?

1•IsraCV•23m ago•0 comments

The myth of the high-tech heist

https://www.technologyreview.com/2026/02/13/1132397/myth-of-high-tech-heist/
1•gnabgib•24m ago•0 comments

Sonder is a word I like

https://www.autodidacts.io/sonder/
1•Curiositry•24m ago•0 comments

I built a bot to grab Berlinale film festival tickets that sell out in seconds

https://github.com/Rswcf/berlinale-ticket-buyer
1•rswcf•24m ago•1 comments

Narmada Human

https://en.wikipedia.org/wiki/Narmada_Human
1•thunderbong•27m ago•0 comments

Stitching Vision Encoders into LLMs: Clip vs. I-JEPA vs. ViT Comparison

https://teendifferent.substack.com/p/stitching-vision-into-llms-a-comparative
1•teendifferent•29m ago•1 comments

Bulletproof: A Look into Aéza

https://213.si/blog/bulletproof-a-look-into-aeza
1•dev213•35m ago•0 comments

NewPipe: YouTube client without vertical videos and algorithmic feed

https://newpipe.net/
6•nvader•36m ago•2 comments

Galactic Matter and Interstellar Flight [pdf]

http://large.stanford.edu/courses/2013/ph241/micks1/docs/bussard.pdf
2•bediger4000•37m ago•0 comments

Prayerfully journey through Lent on the Exodus 90 App

https://exodus90.com/how-lent-works/
1•nvader•37m ago•0 comments

The Battle of the Beams

https://en.wikipedia.org/wiki/Battle_of_the_Beams
4•jacquesm•39m ago•0 comments

I love the work of the ArchWiki maintainers

https://k7r.eu/i-love-the-work-of-the-archwiki-maintainers/
3•panic•39m ago•0 comments

Cuba's regime is in dire straits

https://www.economist.com/the-americas/2026/01/14/cubas-regime-is-in-dire-straits
3•ViktorRay•44m ago•1 comments

Anthropic's Public Benefit Mission

https://simonwillison.net/2026/Feb/13/anthropic-public-benefit-mission/
4•abdelhousni•47m ago•0 comments

States reliant on Colorado River fail to meet latest deadline to find consensus

https://apnews.com/article/colorado-river-arizona-california-nevada-water-45daf816feba9004c389dc4...
3•bikenaga•49m ago•0 comments

An open-source real-time motor driver for the Lego Orrery

https://gorkem.cc/projects/LegoOrreryMod/
1•gorkyver•51m ago•0 comments

Hardest Problem in Computer Science: Centering Things

https://tonsky.me/blog/centering/
1•signa11•53m ago•1 comments

I Have Nothing but Red Herring to Hide

https://theprivacydad.com/i-have-nothing-but-red-herring-to-hide/
1•theprivacydad•54m ago•0 comments

Let's Get Physical

https://m4iler.cloud/posts/lets-get-physical/
1•MBCook•56m ago•0 comments

Computing Inequality: Have Computers Changed the Labor Market? (1977) [pdf]

https://economics.mit.edu/sites/default/files/publications/computing%20inequality%201998.pdf
1•yowmamasita•58m ago•0 comments

MicroGPT - Train and inference a GPT in pure, dependency-free Python (200 lines)

https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
1•susam•59m ago•0 comments

Zig landed io_uring and Grand Central Dispatch std.Io implementations

https://ziglang.org/devlog/2026/?20260213#2026-02-13
1•todsacerdoti•59m ago•0 comments