frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

Show HN: AcruxCore – version and trace the prompts and tools your agents use

https://github.com/AcruxCore/AcruxCore
1•aidotguru•5m ago•0 comments

There are 25% more psychotherapy sessions at 53 minutes than at 52

https://www.trytwofold.com/insights/53-minute-billing-threshold
1•ragswag•5m ago•0 comments

Vampires Biology and Evolution [video]

https://www.youtube.com/watch?v=wEOUaJW05bU
1•adamgordonbell•5m ago•0 comments

Norway to propose temporary ban on AI glasses in some public places

https://www.reuters.com/technology/norway-propose-temporary-ban-ai-glasses-some-public-places-202...
1•jmsflknr•7m ago•0 comments

Intel Xeon 6 SKU List and Value Analysis: Clearwater Forest Runs Wide

https://www.servethehome.com/intel-xeon-6-sku-list-and-value-analysis-clearwater-forest-runs-wide/
1•rbanffy•11m ago•0 comments

Planned Pooling for Knitters

https://yarnsub.com/articles/tools/color-pooling-simulator
1•ardoise•12m ago•0 comments

Memory Snapshots for CPython (Python Language Summit 2026) – Python Insider

https://blog.python.org/2026/09/language-summit-2026-memory-snapshots/
1•rbanffy•13m ago•0 comments

Creation of the Humanoids (1962)

https://www.moviestvnetwork.com/movies/2060
1•fuzzfactor•14m ago•1 comments

Show HN: Reright.it – Human approval for agent-written text

https://reright.it/
1•paulofilip3•14m ago•0 comments

FBI arrests 'Chinese foreign agent' for spying on Taiwan president's son

https://www.aljazeera.com/news/2026/10/5/fbi-arrests-chinese-foreign-agent-for-spying-on-taiwan-p...
1•snarky-comments•15m ago•0 comments

Binance Founder Changpeng Zhao's Life After Prison

https://www.nytimes.com/2026/10/01/business/changpeng-zhao-binance.html
2•7777777phil•16m ago•0 comments

Distributed DataFusion: A library for building distributed query engines in Rust

https://www.datadoghq.com/blog/engineering/distributed-datafusion/
1•gabimtme•16m ago•0 comments

What it took to make sovereign AI self-serve

https://www.union.ai/blog-post/its-now-super-easy-to-start-using-union-ai
1•samhita-alla•18m ago•0 comments

I copied Muse's memory setup for Hermes and experienced significant improvement

https://reddit.com/comments/1wxu98g/
2•thunderbong•20m ago•0 comments

Show HN: Montray – a tray icon for systemd service health

https://github.com/dimonomid/montray
2•dimonomid•20m ago•0 comments

Agent should lose access when the task ends

https://www.drjoshcsimmons.com/writing/your-agent-should-lose-access-when-the-task-ends
1•joshcsimmons•21m ago•0 comments

Automating eval design and hillclimbing with Claude

https://claude.dev/blog/automating-eval-design-and-hillclimbing/
1•codelion•21m ago•0 comments

Internet Watch Foundation reports rise in AI child sexual abuse material

https://www.theguardian.com/technology/2026/oct/05/internet-watch-foundation-huge-rise-ai-child-s...
1•ilreb•22m ago•1 comments

A rebuttal to "What makes Lisp difficult to read?"

http://digikar.online/microblog/p/lisp-syntax-rebuttal/
1•Thom2503•24m ago•0 comments

All hail electrification. But let's talk about the hard part

https://insideclimatenews.org/news/01102026/inside-clean-energy-global-electrification-obstacles/
1•rbanffy•26m ago•0 comments

Apple and a Hacker's Future

https://stratechery.com/2026/apple-and-a-hackers-future/
5•maguay•28m ago•0 comments

Integrating an Orcon ventilation system into Home Assistant

https://elvinhome.io/blog/articles-3/hacking-my-rental-apartment-s-ventilation-to-be-smart-orcon-...
1•Eelviny•28m ago•1 comments

IBM Bob expands to self-hosted environments

https://www.ibm.com/new/announcements/ibm-bob-expands-to-self-hosted-environments-for-sensitive-a...
1•noiv•29m ago•0 comments

How AI-Native Companies Are Rebuilding the Management Function

https://growthwiseteams.substack.com/p/how-ai-native-companies-are-rebuilding
1•Vameyer•30m ago•0 comments

Staying on the path to high performing teams

https://lethain.com/durably-excellent-teams/
1•fagnerbrack•32m ago•0 comments

The Impossible Problem and the Perils of Writing a Physics Engine

https://lotusspring.substack.com/p/the-impossible-problem-and-the-perils
2•tahatorabpour•33m ago•0 comments

Azure showed $21k in startup credits. Claude in Foundry billed our card $17k

https://vegalabs.no/azure-claude-billing.html
3•knutsolini•36m ago•0 comments

Tickler: Reminders that Claude Code writes and resumes

https://github.com/PixiBixi/tickler
1•PixiBixi•39m ago•0 comments

Rust for CPython (Python Language Summit 2026) – Python Insider

https://blog.python.org/2026/09/language-summit-2026-rust-for-cpython/
2•rbanffy•40m ago•0 comments

Quad9 Rejects French Piracy Blocks, Weighs Exit as BeIN Seeks Up to €580K a Day

https://torrentfreak.com/dns-resolver-quad9-rejects-french-piracy-blocks-weighs-exit-as-bein-seek...
2•rzk•41m ago•0 comments