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?

Tristan Davey's Punch Card Archive

https://punchcards.tristandavey.com/
1•ohjeez•1m ago•0 comments

Show HN: CLI Security for Agentic Development

https://github.com/marco-trotta1/badvibes
1•muoco-01•2m ago•0 comments

New Surface devices built for business and AI acceleration

https://blogs.windows.com/devices/2026/05/19/introducing-new-surface-devices-built-for-business-a...
1•ericsaf•2m ago•0 comments

Show HN: Nexus – free, self-hosted business suite for service teams

https://nexus-erp.de
1•at2software•3m ago•0 comments

New syslog formatter for Golang (RFC 3164/5424/6587 compatible)

https://github.com/zveinn/go-syslog
1•keyb1nd•3m ago•0 comments

VIX

https://github.com/kirby88/vix-releases
1•DeathArrow•3m ago•0 comments

Microsoft Delta

https://www.youtube.com/watch?v=8bNLp_oTuNM
1•Krontab•4m ago•0 comments

Ask HN: What are your plans for the AI future?

1•MisterTea•5m ago•0 comments

Show HN: RoBrain – Shared memory for AI agents, with rejected alternatives

https://github.com/adelinamart/robrain
1•mart1adelina•7m ago•0 comments

What Copy Fail looked like on a minimal OS

https://github.com/siderolabs/awesome-talos/wiki/Why-Kubernetes-nodes-inherit-problems-they-never...
4•hannle•7m ago•0 comments

Show HN: WiFi Heatmap – free, browser-based predictive WiFi planner

https://wifiheatmap.app/
2•kgergov•8m ago•1 comments

There's no such thing as "age verification"

https://pluralistic.net/2026/05/19/shes-dead-of-course/
1•Brajeshwar•8m ago•0 comments

Chart: How Tech Giants Make Their Billions (2017)

https://www.visualcapitalist.com/chart-5-tech-giants-make-billions/
1•chistev•8m ago•1 comments

Powertracker, 29 GW of announced AI capacity mapped to host counties

https://powertracker.io/
1•twistedwabbit•10m ago•0 comments

Forward-Looking Laziness: What Changes When AI Writes 95% of the Code

https://www.szia.ai/post/forward-looking-laziness-what-changes-when-ai-writes-95-of-the-code
1•mszel•10m ago•0 comments

What Bazel taught us about Terraform

https://stategraph.com/blog/what-bazel-taught-us-about-terraform
1•lawnchair•10m ago•0 comments

Parag Agrawal's AI startup wants to pay publishers when AI agents use their work

https://fortune.com/2026/05/19/parag-agrawal-parallel-startup-pay-publishers-when-ai-agents-use-t...
1•rahul003•11m ago•0 comments

.DJVU – Open, Highly Compressed .PDF Alternative

https://en.wikipedia.org/wiki/DjVu
1•evolve2k•11m ago•0 comments

Moving my backups to restic (2021)

https://blog.darkmere.gen.nz/2021/02/moving-my-backups-to-restic/
2•mooreds•12m ago•0 comments

Book on Truth in the Age of A.I. Contains Quotes Made Up by A.I

https://www.nytimes.com/2026/05/19/business/media/future-of-truth-ai-quotes.html
1•droidjj•12m ago•0 comments

My sci-fi novel recommendations (2023)

https://www.noahpinion.blog/p/my-sci-fi-novel-recommendations-888
1•mooreds•13m ago•0 comments

Mystery Math Whiz and Novelist Advance Permutation Problem (2018)

https://www.quantamagazine.org/sci-fi-writer-greg-egan-and-anonymous-math-whiz-advance-permutatio...
1•mooreds•14m ago•0 comments

AI's Missing Pricing Tier

https://medium.com/@sandeepjawaharp/ais-missing-pricing-tier-a0522ab083d4
1•SandeepJawahar•14m ago•0 comments

EJBCA – Open-source public key infrastructure (PKI) and CA software

https://github.com/Keyfactor/ejbca-ce
1•sigalor•14m ago•0 comments

Programming the Amiga and Atari ST in C: Counter Loops and Game Ticks

https://retrogamecoders.com/st-amiga-c-loops/
1•ibobev•15m ago•0 comments

Cheap cloud AI was never going to last. The off-ramp wasn't built for everyone

https://www.greatworkeveryone.com/writing/cheap-cloud-ai-was-never-going-to-last
2•connorrandazzo•15m ago•0 comments

EvmScript: Write EVM programs using TypeScript

https://github.com/KimlikDAO/EvmScript
1•szaglam•15m ago•0 comments

Show HN: Askbyemail.com – Send an email, get AI answer or summary (no signup)

https://www.askbyemail.com
1•ahallan•16m ago•0 comments

OCC Violated 4 Statutes, Allowing National Banks to Engage in Crypto Activities

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6789822
3•petethomas•17m ago•0 comments

AI Agents Reason over Enterprise Data

https://nexla.com/agentic-rag-guide/
1•Debanitrkl•21m ago•0 comments