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

Circle CI Chunk CLI: CLI for generating AI agent context from real code reviews

https://github.com/CircleCI-Public/chunk-cli
1•umangsehgal93•3m ago•0 comments

Big Tech's Gulf megaprojects are trapped between two war choke points

https://restofworld.org/2026/us-iran-war-gulf-ai-submarine-cables/
1•car•3m ago•0 comments

Building an Open-Source Verilog Simulator with AI

https://normalcomputing.com/blog/building-an-open-source-verilog-simulator-with-ai-580k-lines-in-...
1•krupan•5m ago•1 comments

The AI Surveillance Debate Is Missing the Most Dangerous Part

https://weaponizedspaces.substack.com/p/the-ai-surveillance-debate-is-missing
1•rbanffy•5m ago•0 comments

Show HN: AeroBase – aerobic base tracking for Garmin runners

https://aerobase.run
1•michaeleaton•6m ago•0 comments

Interpreting near native speeds with CEL and Rust

https://blog.howardjohn.info/posts/cel-fast/
1•ingve•7m ago•0 comments

Big Google Home update lets Gemini describe live camera feeds

https://www.theverge.com/tech/888008/big-google-home-update-lets-gemini-describe-live-camera-feeds
1•JeanKage•8m ago•0 comments

Nvidia CEO $30B OpenAI investment 'might be the last'

https://www.cnbc.com/2026/03/04/nvidia-huang-openai-investment.html
1•oxag3n•8m ago•1 comments

China Trader Who Made $3B on Gold Bets Big Against Silver

https://www.bloomberg.com/news/articles/2026-02-05/china-trader-who-made-3-billion-on-gold-bets-b...
1•etruong42•10m ago•0 comments

Hacker mass-mails HungerRush extortion emails to restaurant patrons

https://www.bleepingcomputer.com/news/security/hacker-mass-mails-hungerrush-extortion-emails-to-r...
1•nobody9999•11m ago•1 comments

Distinct AI Models Seem to Converge on How They Encode Reality

https://www.quantamagazine.org/distinct-ai-models-seem-to-converge-on-how-they-encode-reality-202...
1•dan-bailey•11m ago•0 comments

US submarine sinks Iranian ship in first torpedo kill since WWII

https://www.militarytimes.com/news/your-military/2026/03/04/us-submarine-sinks-iranian-ship-in-fi...
1•throwawaypath•13m ago•0 comments

Show HN: TrashAlert – I asked AI when my trash gets picked up. It hallucinated

https://trashalert.io/?hn=1
1•hudtaylor•14m ago•1 comments

Snip – Your screenshots deserve better

https://snipit.dev
1•rexwangrx•17m ago•0 comments

Erfurt Latrine Disaster

https://en.wikipedia.org/wiki/Erfurt_latrine_disaster
2•dan-bailey•19m ago•1 comments

Show HN: Runlocal – Open-source localhost tunnel, no signup, no tracking

https://runlocal.eu
1•gautema•20m ago•0 comments

Does that use a lot of energy?

https://hannahritchie.github.io/energy-use-comparisons/
10•speckx•20m ago•0 comments

Claude Code Mastery Course for PMs

https://github.com/carlvellotti/claude-code-pm-course
1•umangsehgal93•22m ago•0 comments

HN: PantryMate – type what's in your fridge, get dinner in 30 seconds

https://pantrymate.net
1•Bummer_land•23m ago•0 comments

Show HN: Composable middleware for LLM inference Optimization Passes

https://github.com/liquidos-ai/AutoAgents
2•human_hack3r•23m ago•0 comments

Anthropic's investors don't have its back in its fight with The Pentagon

https://www.semafor.com/article/03/03/2026/anthropics-investors-dont-have-its-back-in-its-fight-w...
1•speckx•24m ago•0 comments

Meet the new vaccine developed to treat colds, flu and Covid

https://www.rte.ie/brainstorm/2026/0304/1560390-vaccine-covid-flu-cold-immune-system-health/
1•austinallegro•24m ago•0 comments

I don't know who needs to hear this

1•sn0n•24m ago•1 comments

We replaced $100K/year in SaaS with a custom build in 15 days

https://www.youtube.com/watch?v=CBaP02CS7ok
1•htuzel•25m ago•0 comments

Show HN: AI Voice typing assistant $9/mo

https://dictatorflow.com
3•farlands•26m ago•0 comments

Liberate yourself from infrastructure over-planning

https://www.lirbank.com/liberate-yourself-from-infrastructure-over-planning
1•lirbank•27m ago•0 comments

Show HN: FadNote – Zero-knowledge secret sharing for your CLI and AI workflows

https://github.com/easyFloyd/fadnote
1•easyFloyd•27m ago•0 comments

We Built an $8/Month GPU-Cluster Monitor

https://www.linum.ai/field-notes/gpu-monitoring-service
2•schopra909•30m ago•0 comments

Deprecate confusing APIs like "os.path.commonprefix()"

https://sethmlarson.dev/deprecate-confusing-apis-like-os-path-commonprefix
1•birdculture•30m ago•0 comments

Jj v0.39.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.39.0
1•todsacerdoti•31m ago•0 comments