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

Living cells may generate electricity from motion

https://www.sciencedaily.com/releases/2025/12/251216081930.htm
1•rkrzr•59s ago•1 comments

Hardware Powers of 10

https://buttondown.com/justincormack/archive/ignore-previous-directions-9-hardware-power/
1•walterbell•1m ago•0 comments

Show HN: I built a tool to parse ArXiv PDFs into interactive web experiences

https://reserif.datastripes.com/w/0FepROjIpscVakURIHQ2
1•vinserello•1m ago•0 comments

Recommended Posts, 2017-2025

https://www.raphkoster.com/2025/11/26/recommended-posts-2017-2025/
1•surprisetalk•3m ago•0 comments

Couple raises family in self-sufficient homestead inside a greenhouse [video]

https://www.youtube.com/watch?v=p5ILdwn0_Fk
1•surprisetalk•3m ago•0 comments

John von Neumann Shot Lightning from His Arse

https://www.theintrinsicperspective.com/p/john-von-neumann-shot-lightning-from/comment/176614979
1•surprisetalk•3m ago•0 comments

Homemade Juggling Beanbag Guide

https://www.joshuaclifton.com/juggle/
1•surprisetalk•3m ago•0 comments

A Feed for Work

https://www.nklswbr.com/blog/a-feed-for-work
1•nklswbr•4m ago•0 comments

Trump's Top Aide Acknowledges 'Score Settling' Behind Prosecutions

https://www.nytimes.com/2025/12/16/us/politics/trump-susie-wiles.html
1•ceejayoz•4m ago•1 comments

Load balancing Stripe API calls from multiple AWS regions

https://stripe.dev/blog/load-balancing-stripe-api-calls-multiple-aws-regions
1•yash1th•4m ago•0 comments

Corporate America Banger of a Song

https://suno.com/song/e4f7c5a8-ffd7-4d58-bf75-cbdd1da99009
1•cranberryturkey•5m ago•0 comments

Deloitte's CTO: Companies are spending 93% on tech and only 7% on people

https://fortune.com/2025/12/15/deloitte-cto-bill-briggs-what-really-scares-ceos-about-ai-human-re...
2•achow•6m ago•0 comments

Startup Launches General-Purpose Processor for AI

https://www.eetimes.com/startup-launches-general-purpose-processor-for-ai/
1•JoachimS•7m ago•0 comments

US gov't launches 'Tech Force' to replace IT staff DOGE fired

https://www.theregister.com/2025/12/15/us_government_tech_force/
1•insane_dreamer•7m ago•2 comments

Pax Silica Marks End of Globalization's Golden Age

https://www.eetimes.com/pax-silica-marks-the-end-of-globalizations-golden-age/
2•JoachimS•7m ago•0 comments

It's still not OK, boomer: younger Americans are flailing – and mad as hell

https://www.theguardian.com/us-news/ng-interactive/2025/dec/07/boomer-millennial-gen-z-housing
1•randycupertino•8m ago•0 comments

Show HN: I made a tool to make user onboarding easier

https://www.joinahoy.com/
1•josheverett•8m ago•0 comments

Show HN: CommerceTXT – An open standard for AI shopping context (like llms.txt)

https://commercetxt.org/
1•tsazan•8m ago•1 comments

Life on the Tip of the Economic Pyramid

https://www.asomo.co/p/scraping-the-sky-tip-of-economic-pyramid
1•Gigamouse•8m ago•0 comments

Few Farms Participate in a Program That Could Prevent Abuse of Farmworkers

https://www.propublica.org/article/fair-food-program-farmworker-abuse-exploitation
1•hn_acker•9m ago•1 comments

Show HN: Single-file, offline-first Kitchen OS for chefs (No SaaS, No Cloud)

https://chefs-black-book.netlify.app/
1•Hyperb0lic•9m ago•0 comments

U.S. economy adds 64,000 jobs in November, unemployment rate at 4-year high

https://www.axios.com/2025/12/16/economy-jobs-november
2•toomuchtodo•10m ago•1 comments

Mozilla's New CEO Bets Firefox's Future on AI

https://m.slashdot.org/story/450253
1•_tk_•10m ago•0 comments

FLUX.2 [max]

https://bfl.ai/models/flux-2-max
1•davidbarker•12m ago•0 comments

Show HN: New macOS dark pattern to force Tahoe upgrade

2•hexbin010•14m ago•0 comments

Creating psychological safety in the AI era

https://www.technologyreview.com/2025/12/16/1125899/creating-psychological-safety-in-the-ai-era/
1•fleahunter•16m ago•0 comments

PostgreSQL extension for BM25 relevance-ranked full-text search

https://github.com/timescale/pg_textsearch
1•jascha_eng•16m ago•0 comments

Watt-Admin 1.0.0: Capture, Profile, and Share Your Node.js Performance Data

https://blog.platformatic.dev/watt-admin-100-capture-profile-and-share-your-nodejs-performance-data
1•feross•17m ago•0 comments

Full AI Voice Agent (Whisper and 700M LLM and NeuTTS) running offline [video]

https://www.youtube.com/watch?v=9eFf2xlKk-s
1•neuphonic•18m ago•1 comments

Basicode in the Browser

https://robhagemans.github.io/basicode/
1•spzb•18m ago•1 comments