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: My developer portfolio with an interactive terminal and live mascot

https://www.yashnandvana.in
1•yashnandvana•1m ago•0 comments

The Secret ThinkPad Powerbutton Code to Bring Dead Laptops Back to Life (2007)

https://masnick.com/posts/the-secret-thinkpad-powerbutton-code-to-bring-dead-laptops-back-to-life/
1•sammatilda•2m ago•0 comments

UCZ – A "zero-prior" context-mixing compressor

https://github.com/no-nova/UCZ
1•adenson•2m ago•0 comments

Albedo: Long running, efficient homes for your agents

https://albedo.sh/
1•icy•3m ago•0 comments

Container-Based Networking Labs

https://containerlab.dev/
1•pelasaco•4m ago•0 comments

Show HN: Open Logs – Self-hosted log management on your own Cloudflare account

https://github.com/Adithya188288/open-logs
1•adi188288•4m ago•0 comments

Coolest Design

https://coolest.design/
1•heyzsolt•4m ago•0 comments

Implicit state machines hide bugs that line-by-line review approves

https://quickchat.ai/post/implicit-state-machines-hide-bugs-that-line-by-line-review-approves
2•piotrgrudzien•7m ago•1 comments

I built a supplier-rating tool to replace our quality spreadsheet

https://suppliscore.com/
1•maleni•9m ago•0 comments

What a 30 Day Digital Journaling Experiment Can Still Teach Us

https://nathanohren.com/paper-pixels-and-the-private-self-what-a-30-day-digital-journaling-experi...
1•threecells•10m ago•0 comments

Show HN: A map showing biodiversity data across the world

https://app.taxonomap.com/
1•anotherjack•10m ago•0 comments

Rubik's Cube production returns to Hungary more than 50 years after invention

https://www.euronews.com/video/2026/11/14/rubiks-cube-production-returns-to-hungary-more-than-50-...
1•giuliomagnifico•12m ago•0 comments

HN Show: Cubepals - Open-source Minecraft hosting, servers sleep until you join

https://cubepals.com
1•xlmnxp•13m ago•0 comments

Microsoft – more details on the root cause

https://twitter.com/clamanna/status/2122209697226948729
1•hyperman1•13m ago•0 comments

The small African lab sounding the alarm on AI bioweapons

https://restofworld.org/2026/ghana-ai-lab-minohealth-bioweapons-threat-dna-synthesis-regulation/
1•milali•16m ago•0 comments

Running a 6M parameter model on a Game Boy

https://twitter.com/timhwang/status/2122011842549600506
1•MrBuddyCasino•20m ago•0 comments

Bessent calls for 'dramatic shakeup' at Nvidia, urges outside CEO

https://www.cnbc.com/2026/11/15/bessent-nvidia-ceo-lutnick-megaspeed.html
1•Betelbuddy•21m ago•1 comments

All 178 fiction-writing notes I took in my MFA

https://cristinwhite.substack.com/p/all-178-notes-i-took-on-writing-fiction
1•jger15•22m ago•0 comments

Footguns in Git CRLF conversions of text files

https://bef.no/gitcrlf/
2•AgoRapide•25m ago•0 comments

Secure access homelab like Homeassistant, terminal, etc.

https://github.com/Bajusz15/beacon
3•Bajusz15•26m ago•0 comments

How Many Companies Are Using a Software Factory?

https://ryanxcharles.com/blog/2026-11-15-how-many-companies-are-actually-using-a-software-factory/
1•adunk•27m ago•0 comments

I posted in "Who wants to be hired?" and a recruiter sent me a RAT and a stealer

https://getjump.me/posts/03-huntrole-fake-take-home/
22•GetJump•27m ago•7 comments

How the brain decides which moments to remember – and which to forget

https://www.independent.co.uk/news/science/how-brain-stores-memories-amygdala-study-new-science-b...
2•nephihaha•28m ago•0 comments

People Shape the Earth–and Are Shaped in Return

https://worldsensorium.com/the-land-within-us/
1•dnetesn•28m ago•0 comments

New Windows SignDrop zero-day gives hackers SYSTEM privileges

https://www.bleepingcomputer.com/news/security/new-windows-signdrop-zero-day-gives-hackers-system...
2•absqueued•29m ago•0 comments

Know Your Contacts: Usable Authentication for Secure Messaging

https://tsmr.eu/blog/2026-master-thesis/
1•upofadown•31m ago•0 comments

The Village That Gave Back Its Sea

https://blue-continuum.com/the-village-that-gave-back-its-sea
2•dnetesn•32m ago•0 comments

Ablation

https://en.wikipedia.org/wiki/Ablation_(artificial_intelligence)
1•tosh•33m ago•0 comments

A local, read-only UI for AWS AI-DLC workflows

https://github.com/Senora-dev/aidlc-ui
2•ShakedBY•33m ago•0 comments

Between Interest and Intention: The Environment and the Formation of Autonomy

https://medium.com/@smoking2man/between-interest-and-intention-the-digital-environment-and-the-fo...
1•Aldus551•35m ago•0 comments