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?

OwnNotes: Private AI Notebook

https://apps.apple.com/us/app/ownnotes-private-ai-note/id6805594736
1•rajeevkrasr•1m ago•0 comments

Nonprofit that tracks meteors taken down by "critical blow" from a cyberattack

https://arstechnica.com/security/2026/09/nonprofit-that-tracks-meteors-taken-down-by-critical-blo...
1•joozio•7m ago•0 comments

RoboHarm: Do Frontier Robot Policies Refuse Unsafe Instructions?

https://robocurve.org/roboharm/
1•jonbaer•8m ago•0 comments

AnyFilter: Hide anything you don't want to see on any site

https://github.com/anyfilter/anyfilter
1•lime66•9m ago•0 comments

TimeCodeSecurity – Deterministic AST SAST and Auto-Remediation for Python

2•AyushGaur•9m ago•0 comments

Show HN: NSLibrary – a self-hosted library for your Switch games and homebrew

https://github.com/tuckerwales/nslibrary
1•tuckerwales•11m ago•0 comments

Guest to host: escaping Docker's hypervisor

https://accomplish.ai/blog/escaping-dockers-hypervisor/
1•porridgeraisin•13m ago•0 comments

First principles of UI composition for your coding agents

https://www.eflx.top/blog/ui-composition-first-principle
1•EFLKumo•13m ago•0 comments

Anthropic sets up biology lab as it ramps AI drug program

https://www.reuters.com/world/anthropic-quietly-sets-up-biology-lab-it-ramps-ai-drug-program-2026...
1•olalonde•16m ago•0 comments

Jev Playground

https://jevplayground.terrydjony.com/
1•terryds•17m ago•0 comments

Windowshot

https://www.windowshot.app/
1•qaisfaiz•18m ago•0 comments

Show HN: Sigabrt.dev – cronjob monitor with an SSH TUI

https://sigabrt.dev
1•4815162342•21m ago•0 comments

Laya the open source version of Jev

https://laya.convaiinnovations.com/
3•nandakishor_ml•22m ago•1 comments

Would you trade a 6-hour layover for 3 days in that city if it's cheaper?

https://uwillfly.net/pl
3•privacyzvarych•22m ago•0 comments

Search Engine that de-ranks Bot Popup and Cookie Popup websites?

1•peter_d_sherman•22m ago•1 comments

Leave the Class Path in the Rearview Mirror

https://netflixtechblog.com/leave-the-class-path-in-the-rearview-mirror-67a85b15b6be
1•theanonymousone•26m ago•0 comments

What Happens If You Execute a Random File? [video]

https://www.youtube.com/watch?v=I3i5cD5fdXI
1•vismit2000•27m ago•0 comments

Claude Fable credit expiring one day earlier than stated

https://www.reddit.com/r/ClaudeAI/comments/1wk7eui/credits_that_were_supposed_to_expire_on_the_19th/
1•rat_on_the_run•28m ago•0 comments

Goosebumps: A Paradigm Shift Is Occurring in Robotics

https://twitter.com/ken_goldberg/status/2100986412762087909
1•danielmorozoff•29m ago•0 comments

New evidence for hidden chambers beyond Tutankhamun's tomb

https://www.nature.com/articles/d41586-026-02621-2
1•bookofjoe•29m ago•1 comments

DraftKings Uses A.I. To Target the Gamblers Likeliest to Lose

https://www.nytimes.com/2026/09/19/business/draftkings-ai.html
3•koolba•29m ago•0 comments

California governor signs order to explore AI 'kill switch'

https://techxplore.com/news/2026-09-california-governor-explore-ai.html
1•geox•33m ago•0 comments

The sort that can't have a best case

https://0xax.dev/cs-inside/the-sort-that-cant-have-a-best-case/
1•donk8r•35m ago•0 comments

How to Limit What Apple's New Siri AI Can Access in iOS 27

https://www.eff.org/deeplinks/2026/09/how-limit-what-apples-new-siri-ai-can-access-ios-27
1•DeepLogin•35m ago•0 comments

What Are Sheaves? (2024)

https://www.quantamagazine.org/what-are-sheaves-20240719/
1•yu3zhou4•37m ago•0 comments

Cisco Identity Services Engine Authentication Bypass Vulnerability

https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-ISE-ABP-VN...
1•fourfire•38m ago•0 comments

Minkowski's Papers on Relativity [pdf]

https://mathweb.ucsd.edu/~b3tran/cgm/Minkowski_SpaceAndTime_1909.pdf
2•binyu•40m ago•0 comments

US and Denmark reach deal over Greenland's security

https://www.euronews.com/2026/09/19/us-and-denmark-reach-deal-over-greenlands-security
1•embedding-shape•40m ago•0 comments

Researchers find way to listen in on headphones from afar

https://www.theregister.com/security/2026/09/17/researchers-find-way-to-listen-in-on-headphones-f...
2•t-3•42m ago•0 comments

Irreal: Improving Emacs Long Lines Performance

https://irreal.org/blog/?p=14091
1•hnp9j9qtda•46m ago•0 comments