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

Crime in the U.S. fell in 2025. Will the trend continue?

https://www.npr.org/2025/12/24/nx-s1-5611466/2025-crime-trends-2026-predictions
1•andsoitis•2m ago•0 comments

Elementary OS 8.1 Available Now

https://blog.elementary.io/os-8-1-available-now/
2•Avshalom•3m ago•0 comments

Brain Gear Is the Hot New Wearable

https://www.wired.com/story/expired-tired-wired-wearables/
1•andsoitis•4m ago•0 comments

Lab teaching you how to exploit the latest n8n vuln

https://tryhackme.com/room/n8ncve202568613
1•realtryhackme•6m ago•0 comments

Rack makes Pion SCTP 71% faster with 27% less latency

https://pion.ly/blog/sctp-and-rack/
2•mosura•7m ago•0 comments

Show HN: Got Tired of LLMs refusing to visit URLs Built open source analyzer CLI

https://github.com/aaronedell/website-company-analyzer
1•thetall0ne•8m ago•1 comments

The economics of all-you-can-eat buffets

https://thehustle.co/the-economics-of-all-you-can-eat-buffets
1•Fiveplus•8m ago•0 comments

Rush hour game generator for playing with your kids

https://www.michaelfogleman.com/static/rush/#FBBCCIFooHoIFAAHoJooGDDJooGooJEEGooo/28
1•iambateman•8m ago•0 comments

Show HN: Go helper for generating FFmpeg HLS/DASH commands

https://github.com/farshidrezaei/mosaic
1•farshidrezaei•9m ago•1 comments

Cjanet

https://github.com/janet-lang/spork/blob/cjanet-jit/spork/cjanet.janet
1•todsacerdoti•14m ago•0 comments

Lessons from Building an Indie App for Artists

https://shanehudson.net/articles/2025/indie-app-for-artists
2•robin_reala•19m ago•0 comments

"N as in, uh" Guide for Telephone Conversations

https://blog.zenosmosis.com/posts/6-nato-alphabet-words/
1•rustic-indian•19m ago•1 comments

Show HN: Beat (SRF) – No Parsing, No Tokenization, Binary-Level Speed

https://github.com/aidgncom/beat
1•aidgn•20m ago•0 comments

Show HN: Unix-HTTP-desktop Unix programs in a browser using x.org

https://bitbucket.org/mieszkowski/unix_http_desktop/src/master/
1•gengiskush•22m ago•0 comments

A Black Scholes explainer with simulations you can interact with

https://envision.page/papers/black-scholes
1•eigen-vector•27m ago•0 comments

Ask HN: Do you have an exit plan for Slack?

2•gtirloni•27m ago•2 comments

How Woodworking Taught Me to Be a Programmer

https://thinkhuman.com/how-woodworking-taught-me-to-be-a-programmer/
2•jamesgill•28m ago•0 comments

How I do web design

https://www.kooslooijesteijn.net/blog/how-i-do-web-design
1•gregwolanski•29m ago•0 comments

Pulled '60 Minutes' segment on Trump immigration policy accidentally aired

https://www.adn.com/nation-world/2025/12/24/pulled-60-minutes-segment-on-trump-immigration-policy...
3•rolph•29m ago•3 comments

Caviar and foie gras? China is becoming a luxury food powerhouse

https://www.ft.com/content/e020def9-e455-44fb-bedc-b3b4fc28c304
2•Geekette•29m ago•0 comments

Show HN: Santa Saves Xmas; Android Game in Google Play Console Closed Testing

1•abionic•31m ago•0 comments

Onion and Garlic Braiding

https://abundantpermaculture.com/how-to-braid-garlic-and-onions/
2•marysminefnuf•33m ago•0 comments

Spaceball 2003 with Modern Software

https://github.com/jfedor2/spaceball-2003
2•starkparker•34m ago•0 comments

California to ban all plastic bags at retail stores starting in 2026

https://www.abc10.com/article/news/politics/california-to-ban-all-plastic-bags-at-retail-stores-s...
3•geox•35m ago•0 comments

Magic-Image: A React Component That Lets Coding Agents Create Images

https://bits.logic.inc/p/open-sourcing-magic-image-a-react
2•sgk284•37m ago•0 comments

Google Cloud Run cost me $4,676 in 6 weeks with zero traff

2•creativesage•38m ago•0 comments

Flamanville reactor has reached 100% of nuclear thermal power

https://www.edf.fr/en/the-edf-group/dedicated-sections/journalists/all-press-releases/update-on-t...
2•QueensGambit•38m ago•0 comments

An initial analysis of the rediscovered Unix V4 tape

https://www.spinellis.gr/blog/20251223/
1•fanf2•39m ago•1 comments

ARC-AGI-3

https://arcprize.org/arc-agi/3/
2•jonbaer•39m ago•0 comments

Make a Scalable Christmas Tree

https://codegolf.stackexchange.com/questions/15860/make-a-scalable-christmas-tree
3•andsoitis•41m ago•0 comments