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?

I Turned an ESP32 into a Thermal USB Webcam

https://www.youtube.com/watch?v=jyhVxC0ipE8
1•iamflimflam1•3m ago•0 comments

ByteDance Seed 2.0

https://seed.bytedance.com/en/seed2
1•tosh•3m ago•0 comments

Gemini's mobile app inherits Google's location permissions

https://support.google.com/gemini/answer/14554984?hl=en&co=GENIE.Platform%3DAndroid
1•leogout•7m ago•0 comments

Solve Everything

https://solveeverything.org/
1•o4c•11m ago•0 comments

Jailbreaking Google Translate

https://twitter.com/elder_plinius/status/2020933759533465658
1•helsinkiandrew•12m ago•0 comments

Show HN: GPACalc – Free GPA and CGPA Calculator (4.0/5.0/10.0 scales)

https://gpacalc.app/
1•YidaDev•15m ago•1 comments

Project Oberon: A Late Appraisal (2025)

https://www.youtube.com/watch?v=hZyNFaojbew
1•pjmlp•17m ago•0 comments

Marching Morons; a Year in Books; AI Character Names

https://bernoff.com/blog/marching-morons-a-year-in-books-ai-character-names-newsletter-4-february...
1•jruohonen•17m ago•0 comments

AI Shifts Concern from Technical Debt to Cognitive Debt

https://margaretstorey.com/blog/2026/02/09/cognitive-debt/
3•reasonableklout•17m ago•0 comments

Need Help, the Softraid and Lvm

1•areslee•18m ago•0 comments

Engineers are becoming sorcerers – Future of software dev with OpenAI Sherwin Wu

https://www.lennysnewsletter.com/p/engineers-are-becoming-sorcerers
1•rocho•19m ago•0 comments

Show HN: Ktrack – A simple, offline workout tracker

https://play.google.com/store/apps/details?id=com.companyname.ktrack&hl=en
1•KhashayarCodes•20m ago•0 comments

Are productivity gains due to AI hard-sell where you work?

1•newsicanuse•26m ago•0 comments

Show HN: LanceCalc – Open-source freelance platform fee calculator

https://github.com/asmahdi08/LanceCalc
1•ASMahdi•31m ago•0 comments

Show HN: Agent Lens – Code assistant observability in VSCode

https://github.com/23min/agent-lens
2•pjettter•39m ago•0 comments

Apple Rankings by the Appleist Brian Frange

https://applerankings.com/
3•Rant423•40m ago•1 comments

Saving the SpaceOrb360 with open source hardware and software (2024) [video]

https://www.youtube.com/watch?v=5K_E0J65uUg
3•starkparker•41m ago•0 comments

There's a Reason American Kids Are Such Picky Eaters

https://www.nytimes.com/2026/02/15/opinion/junk-food-picky-eaters.html
4•metadat•44m ago•1 comments

Watching Code Fly By

https://www.natemeyvis.com/on-watching-code-fly-by/
2•ingve•45m ago•0 comments

Show HN: DepGuard – Local dependency audit and license compliance (10 pkg mgrs)

https://github.com/suhteevah/depguard
2•suhteevah•51m ago•0 comments

Hamming Distance for Hybrid Search in SQLite

https://notnotp.com/notes/hamming-distance-for-hybrid-search-in-sqlite/
2•enz•51m ago•0 comments

Show HN: DocSync – Git hooks that block commits with stale documentation

https://github.com/suhteevah/docsync
3•suhteevah•52m ago•0 comments

ChatGPT "Physics Result" Reality Check: What It Did [video]

https://www.youtube.com/watch?v=3_2NvGVl554
1•smukherjee19•54m ago•0 comments

Zero Dependency Markdown Editor

https://overtype.dev/
2•l1am0•54m ago•0 comments

A Wave of Unexplained Bot Traffic Is Sweeping the Web

https://www.wired.com/story/made-in-china-niche-websites-are-seeing-a-surge-of-mysterious-traffic...
1•saikatsg•57m ago•0 comments

Show HN: AI-optimized x86-64 assembly vs. GCC -O3 on three production kernels

https://github.com/cleonard2341/ai-kernel-optimizer/blob/main/blog/ai-assembly-vs-gcc-o3.md
1•cod-e•1h ago•1 comments

Which past applications you built can be migrated to Agentic architecture?

1•sanatku•1h ago•0 comments

Over a million people rally worldwide in solidarity with Iran protests

https://www.iranintl.com/en/202602146821
1•ukblewis•1h ago•0 comments

Cynthia's Valentine (Sci-Fi)

https://stackdiver.com/posts/cynthias-valentine/
1•osmoscraft•1h ago•0 comments

How Investigators Find the Source of a Fire [video]

https://www.youtube.com/watch?v=1pPoB8be1G0
3•dataflow•1h ago•1 comments