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

Linux 7.0 Released

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/?h=v7.0
1•Jotalea•1m ago•0 comments

OpenAI touts AWS alliance, says Microsoft has 'limited our ability'

https://www.cnbc.com/2026/04/13/openai-touts-amazon-alliance-in-memo-microsoft-limited-our-abilit...
1•cebert•1m ago•0 comments

Bitten by snakes 200 times – on purpose: quest to help deliver new antivenom

https://www.theguardian.com/environment/2026/apr/09/intentional-snakebites-antivenom
1•speckx•2m ago•0 comments

Mark Zuckerberg is reportedly building an AI clone to replace him in meetings

https://www.theverge.com/tech/910990/meta-ceo-mark-zuckerberg-ai-clone
2•temphaaa•4m ago•0 comments

Astro SEO Guide – From Yoast SEO Founder

https://joost.blog/astro-seo-complete-guide/
1•johnnyballgame•5m ago•0 comments

Show HN: Open KB: Open LLM Knowledge Base

1•mingtianzhang•5m ago•0 comments

Operational Experience as a Performance Multiplier in AI Assistants

https://github.com/patechlabs/aria-experience-study
1•RushNur•5m ago•0 comments

Popular Psychology Myths You Probably Still Believe

https://www.nateliason.com/blog/psychology-myths
1•theorchid•7m ago•0 comments

Build interactive Claude Code Playgrounds

https://www.jointjs.com/blog/build-better-claude-code-playgrounds-with-jointjs
2•marekhozak10•10m ago•0 comments

Booking.com warns customers of hack that exposed their data

https://www.theguardian.com/technology/2026/apr/13/booking-com-customers-hack-exposed-data
2•Brajeshwar•11m ago•0 comments

What, exactly, is the GIL?

https://finbarr.ca/what-is-the-gil/
1•tanelpoder•11m ago•0 comments

Show HN: I built a no-code report builder for Microsoft endpoint management data

1•jmoreau7679•12m ago•0 comments

Observer Patch Holography (OPH)

https://github.com/FloatingPragma/observer-patch-holography
1•regnull•12m ago•1 comments

LLM is a compiler, not a runtime

https://getpocketbot.com/blog/llm-compiler-not-runtime
2•ehtbanton•12m ago•1 comments

Solar power in Africa is heating up – thanks in part to chili peppers

https://www.cbc.ca/news/science/grid-solar-africa-9.7126087
2•speckx•14m ago•0 comments

Recreated Scratch but for AI Engineering

https://vercel-upload-psi.vercel.app/
1•ryanrana•15m ago•0 comments

Dex: Research language for array processing in the Haskell/ML family

https://github.com/google-research/dex-lang
1•tosh•16m ago•0 comments

Solar Panels in Aleppo Syria

https://old.reddit.com/r/solarpunk/comments/1sicflf/solar_panels_in_aleppo_syria/
1•locallost•16m ago•0 comments

Remy: Remember Everything

https://twitter.com/JacobTrebil/status/2043000577731498063
1•Jacobtrebil•16m ago•0 comments

Show HN: Fake-Fast Detector – Exposing performance dark patterns and PSI cosplay

https://vibeaxis.com/fake-fast-detector/
1•XQorp•16m ago•0 comments

Show HN: ParseBench – Document parsing benchmark for AI agents

https://www.parsebench.ai/
4•pierre•18m ago•3 comments

Ask HN: Infinitely Scalable Prompts

1•davidajackson•21m ago•0 comments

Show HN: Reverse Engineered Apple's Circular App Clip Codes

https://github.com/rs/appclipcode
2•poitrus•22m ago•0 comments

Montana tribes are using sovereignty to restore their waterways

https://www.hcn.org/issues/58-3/how-montana-tribes-are-using-sovereignty-to-restore-their-waterways/
1•speckx•22m ago•0 comments

Making Postgres materialized view refreshes O(delta) instead of O(total)

https://gist.github.com/Tostino/e61b0d78e875ae22767deb0ffa55d2e1
1•Tostino•22m ago•0 comments

Critical Marimo pre-auth RCE flaw now under active exploitation

https://www.bleepingcomputer.com/news/security/critical-marimo-pre-auth-rce-flaw-now-under-active...
1•Brajeshwar•25m ago•0 comments

The secrets of the shinkansen

https://www.worksinprogress.news/p/the-secret-behind-japans-railways
1•herbertl•26m ago•0 comments

Organics and Mechanics

https://randsinrepose.com/archives/organics-and-mechanics/
1•rzk•26m ago•0 comments

'Our historical condition is a peculiar mixture of omniscience and impotence'

https://www.lemonde.fr/en/opinion/article/2026/04/05/will-self-our-historical-condition-is-a-pecu...
1•speckx•27m ago•0 comments

Memelang: Terse SQL for LLM Generation

https://memelang.net/10/
1•bri-holt•28m ago•0 comments