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

Shunting-Yard Animation

https://somethingorotherwhatever.com/shunting-yard-animation/
1•s1291•3m ago•0 comments

They dug up Troy and lost the gold

https://storica.club/blog/troy-was-real/
1•aralsamuel•6m ago•0 comments

Rust-based ScanCode-compatible scanner for licenses and copyrights

https://github.com/mstykow/provenant
1•Tomte•6m ago•0 comments

Using AI to onboard to a new codebase

https://newsletter.eng-leadership.com/p/how-to-use-ai-to-onboard-into-a-codebase
1•wordsaboutcode•7m ago•0 comments

Cyclekart: How to build a soapbox with a motor [video]

https://www.youtube.com/watch?v=vATUDJyM5PQ
1•Teever•7m ago•0 comments

Technical Dimensions of Live Feedback in Programming Systems

https://joshuahhh.com/dims-of-feedback/
1•tobr•8m ago•0 comments

The Reality of an Employer's Market

https://yusufaytas.com/the-reality-of-an-employers-market
7•vibeloop•9m ago•0 comments

Disgraced US gov software contractor found guilty of database destruction

https://www.theregister.com/cyber-crime/2026/05/08/former-us-contractor-convicted-in-federal-data...
1•Bender•10m ago•0 comments

Akamai surges on big LLM deal as Cloudflare dims

https://www.theregister.com/networks/2026/05/09/akamai-surges-on-big-llm-deal-as-cloudflare-dims/...
1•Bender•10m ago•0 comments

WFY24 – A performance-first weather widget with 2km hyper-local AI forecasting

https://wordpress.org/plugins/wfy24-weather-widget/
2•weatherfun•11m ago•0 comments

'Dirty Frag' Linux flaw one-ups CopyFail with no patches and public root exploit

https://www.theregister.com/security/2026/05/08/dirty-frag-linux-flaw-one-ups-copyfail-with-no-pa...
1•Bender•13m ago•0 comments

The Blue Collar Delusion: Why the machines don't have to climb up to us

https://old.reddit.com/r/singularity/comments/1t5cx3y/the_blue_collar_delusion_why_the_machines_d...
1•wallflower•14m ago•0 comments

Paper Factory

https://www.nathanwilmers.com/paper_factory/
1•_tk_•15m ago•1 comments

Louis Rossmann tells 3D printer maker Bambu Lab to 'Go (Bleep) yourself'

https://www.tomshardware.com/3d-printing/louis-rossmann-tells-3d-printer-maker-bambu-lab-to-go-bl...
19•iancmceachern•17m ago•3 comments

AI Is Making Digital Fraud Easier, Faster and Harder to Stop

https://www.bloomberg.com/graphics/2026-ai-identity-theft-scams/
1•elsewhen•19m ago•1 comments

I made rust's cargo copy but for CPP

https://github.com/user-with-username/crow
1•anybodyy•20m ago•0 comments

Owl Alpha – A free model for agentic workloads (prompts logged / closed-source)

https://openrouter.ai/openrouter/owl-alpha
1•webninja•21m ago•0 comments

Show HN: Codebook of 450k+ unique words and phrases acts as a text compressor

https://i.postimg.cc/WpBcB4HK/IMG-20260510-103853.jpg
2•smalltorch•22m ago•1 comments

AI Agent Passport – an open identity standard for AI agents

https://github.com/StacyStarchum/Ai-agent-passport-
1•Stacy_Starchum•25m ago•1 comments

What if the browser was the server?

https://arthurcornil.com/blog/ship-it-to-the-user/
2•thunderbong•26m ago•0 comments

Taxpayers May Be Eligible for Significant Tax Refunds – If They Act by July 10

https://www.taxpayeradvocate.irs.gov/news/nta-blog/tens-of-millions-of-taxpayers-may-be-eligible-...
17•goldfishgold•27m ago•4 comments

Show HN: Headstart – Command pallet and start page for efficient browsing

https://useheadstart.app/
1•powerpurple•27m ago•0 comments

Defence sovereignty: Europe races to build the low-cost weapons of future

https://www.theguardian.com/world/2026/may/10/defence-sovereignty-europe-builds-low-cost-weapons-...
2•beardyw•29m ago•0 comments

Designing, Refining, and Maintaining Agent Skills at Perplexity

https://research.perplexity.ai/articles/designing-refining-and-maintaining-agent-skills-at-perple...
1•gmays•31m ago•0 comments

Chindogu: Weird and Useless Japanese Inventions

https://rarehistoricalphotos.com/weird-japanese-inventions/
9•ethanpil•31m ago•1 comments

Cancelling Claude subscription renewal immediately revokes Design access

2•o10449366•35m ago•2 comments

Memory godboxes could offer relief from the RAMpocalypse

https://www.theregister.com/systems/2026/05/10/memory-godboxes-could-offer-relief-from-the-rampoc...
1•beardyw•36m ago•0 comments

Nayuta Space Is Building Bellyflopping Rocket Boosters

https://www.china-in-space.com/p/nayuta-space-is-actually-building
2•JPLeRouzic•37m ago•0 comments

We asked 72 AI models which brands are best

https://peaktoken.ai/
1•svensauleau•39m ago•0 comments

Could Contact-Tracing Apps Help with the Hantavirus? Not

https://www.wired.com/story/could-contact-tracing-apps-help-with-the-hantavirus-not-really/
2•Brajeshwar•43m ago•0 comments