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•6mo 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•6mo 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 write a great agents.md: Lessons from over 2,500 repositories

https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-250...
1•e2e4•1m ago•0 comments

Chat GPT Account

https://chatgpt.com/c/69222942-8258-832d-8082-6ff184af7a5c
1•Zackfer•3m ago•1 comments

Show HN: Another JSON Alternative

1•mircerlancerous•5m ago•0 comments

Inflatable Space Stations

https://worksinprogress.co/issue/inflatable-space-stations/
1•angadh•6m ago•0 comments

If the GenAI Bubble Bursts, Nvidia Will Still Keep Growing

https://www.nextplatform.com/2025/11/21/if-the-genai-bubble-bursts-nvidia-will-still-keep-growing/
1•rbanffy•7m ago•0 comments

Become the Consequence

https://randsinrepose.com/archives/become-the-consequence/
1•mooreds•8m ago•0 comments

WorldGen – Text to Immersive 3D Worlds

https://www.meta.com/en-gb/blog/worldgen-3d-world-generation-reality-labs-generative-ai-research/
9•smusamashah•11m ago•0 comments

Pitch Multiplication (2017)

https://klangnewmusic.weebly.com/direct-sound/pitch-multiplication
1•ofalkaed•11m ago•0 comments

Boomtown: Futuristic DE Weapons Research Could Power Albuquerque NM

https://undark.org/2025/11/19/boomtown-albuquerque-directed-energy/
1•transpute•13m ago•0 comments

Analyzing Papers with Nano Banana Pro

https://paper-lens-by-dair-ai-181664986325.us-west1.run.app/
1•omarsar•15m ago•0 comments

User Identity Isn't Complete Without Authorization

https://fusionauth.io/blog/fusionauth-acquires-permify
3•mooreds•17m ago•0 comments

Ask HN: Do developers need to follow every tech update?

1•jerawaj740•19m ago•0 comments

Playtiles – stick-on electronic-free gamepad for phones

https://get.playtil.es/
2•ksymph•19m ago•0 comments

Top WordPress Alternatives

https://www.notwp.com/blog/9-top-wordpress-alternatives-1763844940410
1•bylde•19m ago•0 comments

Kids who own smartphones before age 13 have worse mental health outcomes: Study

https://abcnews.go.com/GMA/Family/kids-smartphones-age-13-worse-mental-health-outcomes/story?id=1...
2•donsupreme•20m ago•0 comments

Eating alone vs. with others: Nutritional and physical outcomes in older adults

https://www.sciencedirect.com/science/article/pii/S0195666325004805
2•gnabgib•20m ago•0 comments

Disruption of Docker Hardened Images and Docker Scout

https://www.dockerstatus.com/pages/incident/533c6539221ae15e3f000031/69220fd908214705e132468a
1•captn3m0•24m ago•0 comments

I Got Sued

https://www.youtube.com/watch?v=CuDIMztL9OU
1•davidclark22•26m ago•0 comments

Show HN: I built a wizard to turn ideas into AI coding agent-ready specs

https://vibescaffold.dev/
2•straydusk•28m ago•0 comments

Cardiac implantable electronic devices' longevity: A novel modelling tool

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0333195
2•PaulHoule•29m ago•0 comments

Show HN: A privacy-first, client-side toolbox (PDF, Imgs, Dev) no server uploads

https://linu.li
2•immineal•30m ago•0 comments

Show HN: HN Buffer – A read-it-later site for your HN favorites

https://hnbuffer.com
3•shaarmar•30m ago•0 comments

Show HN: Building an AI Agent

https://app.9octopus.com/
2•thimoteelegrand•32m ago•0 comments

Information Literacy and Chatbots as Search

https://buttondown.com/maiht3k/archive/information-literacy-and-chatbots-as-search/
2•walterbell•32m ago•0 comments

Björk Guðmundsdóttir

https://en.wikipedia.org/wiki/Bj%C3%B6rk
2•weinzierl•33m ago•0 comments

Show HN: Build the habit of writing meaningful commit messages

https://github.com/arpxspace/smartcommit
3•Aplikethewatch•36m ago•0 comments

Rapid Transit Timelines and Scale Comparison

https://transit-timelines.github.io/
3•JumpCrisscross•36m ago•0 comments

Physicists drive antihydrogen breakthrough at CERN

https://phys.org/news/2025-11-physicists-antihydrogen-breakthrough-cern-technique.html
4•naves•37m ago•0 comments

A Reverse Engineer's Anatomy of the macOS Boot Chain and Security Architecture

https://stack.int.mov/a-reverse-engineers-anatomy-of-the-macos-boot-chain-security-architecture/
4•19h•37m ago•0 comments

New Rolls-Royce technology prevents sand damage to jet engines

https://www.bbc.com/news/articles/cj0e3npg7e4o
3•neversaydie•37m ago•1 comments