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?

We don't require human review on most PRs anymore

https://eng.miragesecurity.ai/posts/10x-change-management/
1•nickdirienzo•1m ago•0 comments

Gorilla: A fast, scalable, in-memory time series database (2016)

https://blog.acolyer.org/2016/05/03/gorilla-a-fast-scalable-in-memory-time-series-database/
1•xnorswap•2m ago•0 comments

AI Resist List

https://airesistlist.org/
2•yacin•2m ago•0 comments

ALS prevention and cure with zinc vs. copper: 15 to 1

https://unbekoming.substack.com/p/what-is-motor-neuron-disease
1•vinyasi•3m ago•0 comments

Bolt CEO says he let go of HR team for creating problems that didn't exist

https://fortune.com/2026/05/19/bolt-ceo-ryan-breslow-cut-hr-department-causing-problems-fintech-s...
3•cdrnsf•4m ago•0 comments

Show HN: New NPM Supply chain Attack?

https://github.com/AdamGonda/ward
1•adamgonda•4m ago•0 comments

Nvidia Announces Financial Results for First Quarter Fiscal 2027

https://nvidianews.nvidia.com/news/nvidia-announces-financial-results-for-first-quarter-fiscal-2027
3•baal80spam•7m ago•0 comments

Open Source Burnout Claims Another Project

https://vlad.website/nvim-treesitter-burnout/
1•linolevan•8m ago•0 comments

In Yesterday's IO Keynote Google Declared War on the Remnants of the Web

https://tldr.nettime.org/@tante/116605858023186072
1•ndr42•8m ago•0 comments

Colorado Amended SB051 (Age Verification Bill) to Exclude Open Source Projects

https://legiscan.com/CO/bill/SB051/2026
1•ki4jgt•10m ago•0 comments

OpenAI Guaranteed Capacity

https://openai.com/business/guaranteed-capacity/
1•punnerud•12m ago•0 comments

The first western pilot to fly the MiG-29 Soviet fighter plane

https://coldwarconversations.com/episode106/
1•Anon84•13m ago•0 comments

Cerebras is now a public company

https://www.cerebras.ai/cbrs
2•KronisLV•13m ago•0 comments

Show HN: Crucible – 8 legendary songwriters tear apart your lyrics, no login

https://songforgeai.com/crucible
1•Torgin•14m ago•0 comments

About My Forza Horizon 6 Plan I Returned the Game Unopened Today (May 20, 2026)

https://samhenrycliff.medium.com/about-my-forza-horizon-6-plan-i-returned-the-game-unopened-today...
1•6stringmerc•15m ago•0 comments

OpenAI Announces Construction of New Data Center on Top of Sick Child

https://www.youtube.com/watch?v=CkDKmSMvfmk
2•unleaded•15m ago•0 comments

KE:SAI Open Science Autonomy Lab

https://kesai.eu/
1•marvinborner•15m ago•0 comments

Google published exploit code for an unfixed Chromium bug

https://arstechnica.com/security/2026/05/google-publishes-exploit-code-threatening-millions-of-ch...
4•logickkk1•16m ago•0 comments

Revised^7 Report on Scheme, Large: Procedural Fascicle Draft is now public

https://r7rs.org/large/fascicles/proc/
1•pmcgoron•17m ago•1 comments

SpaceX punts Starship launch as investigation opens into Starbase worker's death

https://www.scientificamerican.com/article/spacex-punts-starship-v3-launch-to-may-21-as-investiga...
4•mywacaday•17m ago•0 comments

Software engineer driven to insanity from 2026 job market [video]

https://www.youtube.com/watch?v=TYuSEeuUhPo
1•mgl•18m ago•0 comments

Yap to Bop: Turn your DMs into hit songs

https://yaptobop.com/
1•ajiang•19m ago•0 comments

A Wayland Compositor in Minecraft

https://modrinth.com/mod/waylandcraft
1•Jotalea•19m ago•0 comments

2019 Revision of the SI units

https://en.wikipedia.org/wiki/2019_revision_of_the_SI
1•AkshayGenius•26m ago•1 comments

India scorched by heat wave, power demand driven to new record

https://www.accuweather.com/en/weather-news/india-scorched-by-heat-wave-power-demand-driven-to-ne...
3•saikatsg•26m ago•0 comments

Dear Claude: Please don't use regex to parse code

https://mbmccoy.dev/posts/no-regex-claude/
1•_alternator_•26m ago•0 comments

ARM SVE2

https://developer.arm.com/documentation/102340/0100/SVE2-architecture-fundamentals
1•tosh•29m ago•0 comments

The Morale of Tech Workers Is Plunging as Layoffs Mount

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
3•saikatsg•29m ago•0 comments

Show HN: Hiding a secret message in plain sight with Steganography

https://postimg.cc/7Gp8YVhT
2•smalltorch•29m ago•0 comments

Firejail

https://github.com/netblue30/firejail
2•janalsncm•29m ago•2 comments