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•11mo 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•11mo 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?

St. Olaf researchers built a computer that doesn't require electricity

https://wp.stolaf.edu/news/from-springs-and-bolts-st-olaf-researchers-built-a-computer-that-doesn...
1•wjSgoWPm5bWAhXB•1m ago•0 comments

Context Is Software, Weights Are Hardware

https://www.aravindjayendran.com/writing/context-is-not-learning
1•maxaravind•1m ago•1 comments

Palantir's Manifesto and Karp's Dissertation

https://xcancel.com/gothburz/status/2045633711299813488
1•doener•4m ago•0 comments

AI song tops iTunes global charts

https://www.dexerto.com/entertainment/ai-generated-song-takes-1-spot-on-itunes-global-charts-3353...
1•cybermango•4m ago•0 comments

Sugar: A Stimulant That Made the Modern World

https://worldhistory.substack.com/p/sugar-a-stimulant-that-made-the-modern-54e
1•crescit_eundo•6m ago•0 comments

Wandering Spleen Condition: Spleen migrating to different location in the body

https://radiopaedia.org/articles/wandering-spleenwanderingspleen
1•cybermango•8m ago•0 comments

AI vendors' response to security flaws: It wasn't me

https://www.theregister.com/2026/04/19/ai_vendors_response_to_security/
1•beardyw•8m ago•0 comments

Real-Time Visualization of Human Finger Joint Cavitation (2015)

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0119470
1•bookofjoe•8m ago•0 comments

HTMX 4.0: Hypermedia finds a new gear

https://www.infoworld.com/article/4150864/htmx-4-0-hypermedia-finds-a-new-gear.html
1•asplake•10m ago•0 comments

New HUDIMM memory specification debuts with goal of slashing DDR5 prices

https://www.tomshardware.com/pc-components/ddr5/new-hudimm-memory-specification-debuts-with-goal-...
1•giuliomagnifico•10m ago•0 comments

GitHub Reports DMCA Takedown Record and Surging Anti-Circumvention Claims

https://torrentfreak.com/github-reports-dmca-takedown-record-and-surging-anti-circumvention-claims/
1•Brajeshwar•12m ago•0 comments

Full algorithm chain I used to implement a sigma rules engine in Linux Kernel

https://cybereason-public.github.io/owLSM/architecture/rule-evaluation.html
1•SilverPlate3•16m ago•0 comments

Neo-Feudalism With Good UX – handful of AI companies became land we all work on

https://www.gailweiner.com/post/neo-feudalism-with-good-ux-how-a-handful-of-ai-companies-became-t...
1•bilsbie•19m ago•0 comments

Ultra-Processed Foods and Muscle Fat Infiltration at Thigh MRI

https://pubs.rsna.org/doi/10.1148/radiol.251129
1•bilsbie•20m ago•0 comments

Education research is weak and sloppy. Why?

https://www.theargumentmag.com/p/education-research-is-weak-and-sloppy
2•cebert•26m ago•0 comments

Show HN: Claude-codex-proxy – Use Claude Code with ChatGPT subscription

https://github.com/raine/claude-codex-proxy
5•rane•32m ago•0 comments

Atlassian's new data collection policy protects rich customers while AI eats

https://www.theregister.com/2026/04/18/atlassians_new_data_collection_policy/
2•latein•32m ago•0 comments

0: I built an app that creates AI real estate videos

https://www.tourestateai.com/en
1•jojomasala•33m ago•0 comments

Show HN: Donbar – A dead-simple way to design and send professional emails

https://www.donbar.org/
2•ShmuelT•34m ago•1 comments

What Figma's 7.7% Drop Is Telling You

https://www.bhusalmanish.com.np/blog/posts/figma-drop-claude-design-saas.html
2•okchildhood•36m ago•0 comments

Robot runners beat humans in Beijing half-marathon

https://www.dw.com/en/robot-runners-beat-humans-in-beijing-half-marathon/a-76846520
2•pseudolus•36m ago•0 comments

Plexus P/20 Emulator

https://spritetm.github.io/plexus_20_emu/
2•hggh•37m ago•0 comments

Contact Lens Uses Microfluidics to Monitor and Treat Glaucoma

https://spectrum.ieee.org/smart-contact-lens-glaucoma-microfluidics
1•pseudolus•37m ago•0 comments

What temperature are you coding at?

https://chrisloy.dev/post/2026/03/29/what-temperature-are-you-coding-at
1•chrisloy•39m ago•0 comments

Principle of Charity

https://en.wikipedia.org/wiki/Principle_of_charity
1•chistev•45m ago•0 comments

A portable OS for emergency situations and extreme privacy needs

https://github.com/Ganso/refugiOS
2•SrTopete•48m ago•0 comments

Show HN: Proposly – AI-generated client proposals for freelancers

https://proposly.org
1•Jafer070•51m ago•0 comments

Everyone needs own their own machine that is an extension of their intelligence

https://twitter.com/beffjezos/status/2045719076644040991
2•bilsbie•51m ago•0 comments

I built a personality-to-hobby matching algorithm using 16 lifestyle dimensions

https://hobbystack.net/
1•thorninanearcor•55m ago•1 comments

High-Fidelity KV Cache Summarization Using Entropy and Low-Rank Reconstruction

https://jchandra.com/posts/hae-ols/
3•jchandra•55m ago•1 comments