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?

Obsidian can now convert Notion pages and DB to durable, private, local files

https://twitter.com/obsdmd/status/1992337699517387116
1•smusamashah•1m ago•0 comments

Boy with rare condition amazes doctors after world-first gene therapy

https://www.bbc.com/news/articles/c5y0y56x6veo
1•nairteashop•1m ago•0 comments

Built emotion detection to help with social cues (open source)

https://github.com/Jordan-Townsend/emovision-chrome-extension
1•Subtextofficial•8m ago•1 comments

Reflections on Analyzing My Own Operation Logs

https://github.com/jeremedia/claude-code-log-format/blob/master/REFLECTIONS.md
1•crancher•10m ago•1 comments

The legal engine of progress: from railroads to AI

https://bigthink.com/the-past/common-law-ai-progress/
1•makerdiety•12m ago•0 comments

Move Expressions

https://smallcultfollowing.com/babysteps/blog/2025/11/21/move-expressions/
1•birdculture•15m ago•0 comments

Psychological Warfare Subversion and Control of Western Society (1983) [video]

https://www.youtube.com/watch?v=5gnpCqsXE8g
1•libpcap•20m ago•0 comments

Why isn't There a open-source (project) game?

1•triilman•21m ago•0 comments

CS Gojek 24Jam

1•Indrianisri•24m ago•6 comments

ZkFuzz Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits

https://www.computer.org/csdl/proceedings-article/sp/2026/606500a901/2bojvL4Zswo
1•syumei•25m ago•0 comments

Visibility Culling

https://www.4rknova.com//blog/2017/01/01/visibility-culling
1•ibobev•31m ago•0 comments

Figure AI sued by whistleblower who stated robots could 'fracture a human skull'

https://www.cnbc.com/2025/11/21/figure-ai-sued.html
1•cyrusradfar•31m ago•0 comments

Lucas Chess, 57 Chess Engines to Play from the Start

https://lucaschess.pythonanywhere.com/
1•turrini•35m ago•0 comments

Editing a young-earth creationist book with ChatGPT-5

https://geoff1111.github.io/
2•Egret•36m ago•0 comments

'Invisible' microplastics spread in skies as global pollutant

https://www.asahi.com/ajw/articles/16137995
7•devonnull•37m ago•0 comments

China has brought millions out of poverty. The US has not – by choice

https://www.theguardian.com/us-news/2025/nov/23/china-us-poverty-income-inequality
5•bookofjoe•39m ago•0 comments

Show HN: Now everyone can write JavaScript API in Rust

https://shyam20001.github.io/rsjs/
1•StellaMary•39m ago•1 comments

Show HN: Aestheai – Text-to-UI Generator Powered by Gemini 3 (Export to Lovable)

https://www.aestheteai.design/
1•adamfils•40m ago•0 comments

Writing Hack: Write It Just Like That

https://psychotechnology.substack.com/p/writing-hack-write-it-just-like-that
2•paulpauper•41m ago•0 comments

Some Thoughts on Cultural Christianity

https://logos.substack.com/p/some-thoughts-on-cultural-christianity
2•paulpauper•41m ago•0 comments

IDE Is Dead? New AI Software Stack: Context, Trust, and Subagents

https://www.turingpost.com/p/aisoftwarestack
1•kseniase•42m ago•0 comments

Reward Hacking

https://www.anthropic.com/research/emergent-misalignment-reward-hacking
1•paulpauper•42m ago•0 comments

Finalists for the 2025 App Store Awards

https://www.apple.com/newsroom/2025/11/apple-announces-finalists-for-the-2025-app-store-awards/
1•andsoitis•44m ago•0 comments

Different Models, Same Slop?

https://www.jerpint.io/blog/different-models-same-slop/
1•jerpint•46m ago•1 comments

Show HN: PR Guard – A GitHub Action to ensure authors understand their PRs

https://github.com/YM2132/PR_guard
1•Two_hands•48m ago•1 comments

Doge 'doesn't exist' with eight months left on its charter

https://www.reuters.com/world/us/doge-doesnt-exist-with-eight-months-left-its-charter-2025-11-23/
20•the_mitsuhiko•50m ago•1 comments

How to Disable USB Attached Storage (UAS)

https://leo.leung.xyz/wiki/How_to_disable_USB_Attached_Storage_(UAS)
2•transpute•53m ago•0 comments

I automated multi-deadline tracking with Excel and Outlook

1•registrytracker•54m ago•0 comments

Supertonic: Ultra-lightweight on-device TTS model open source by Supertone

https://huggingface.co/spaces/Supertone/supertonic
1•wansookim•1h ago•0 comments

Generalizing Printf in C

https://webb.is-a.dev/articles/generalizedprintf/
1•oliverkwebb•1h ago•0 comments