frontpage.
newsnewestaskshowjobs

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?

Show HN: Automatic font clean-room reimplementor

https://github.com/robinpie/fontliberator/
1•robinpie•1m ago•0 comments

Show HN: CodexL – All-in-one launcher for Codex

https://github.com/musistudio/CodexL
1•musistudio•6m ago•0 comments

Job: Head of Stonehenge

https://www.english-heritage.org.uk/about/our-people/careers-with-us/job-search/default-job-page/...
2•mooreds•6m ago•0 comments

The hottest job this summer is European ambassador for ranch dressing

https://www.msn.com/en-us/money/companies/the-hottest-job-this-summer-is-european-ambassador-for-...
1•mooreds•6m ago•0 comments

Insider-signal – open-source CLI STOCKS,Congress

https://github.com/karanhumber007-ctrl/insider-signal
1•karansidhu007•7m ago•0 comments

How Costco sells such cheap gas

https://www.cnn.com/2026/05/31/business/costco-cheap-gas
1•mooreds•7m ago•0 comments

An industry is being propped up by math that is insane

https://garymarcus.substack.com/p/an-entire-industry-is-being-propped
1•swolpers•7m ago•0 comments

US Military Personnel in Israel Found Secret Spyware on Their Phones

https://www.ibtimes.co.uk/us-raises-espionage-threat-level-israel-surveillance-allegations-1801334
1•Teever•7m ago•0 comments

StumbleTV: Omegle/ChatRoulette but for accidentally exposed webcams

https://stumbletv.alec.is/c/943df1a2342b6bd5
1•jumploops•9m ago•1 comments

Ask HN: I see AI valuation coming down as soon as next year. What do you think?

1•akmittal•11m ago•0 comments

Crowdsourced AI and= Knostic

https://blog.virustotal.com/2026/06/crowdsourced-ai-knostic.html
1•jruohonen•14m ago•0 comments

Microsoft says it will not pursue security researchers after zero-day backlash

https://therecord.media/microsoft-says-it-will-not-pursue-security-researchers-disclosure
3•nryoo•18m ago•0 comments

Russell Vought is going to destroy American Science

https://elizabethginexi.substack.com/p/summary-of-key-changes-in-ombs-proposed
4•ZunarJ5•19m ago•0 comments

Lego Batman's Commodore 64 BASIC easter egg

https://bsky.app/profile/cabel.panic.com/post/3mnpxqsbwok2i
2•CharlesW•19m ago•0 comments

Community LLM reference – VRAM tables, GPU tier filter, tool-call ratings

https://bmt-llm-reference.vercel.app
1•Grynder•19m ago•0 comments

Trace analysis directly on service dependency graph

https://www.youtube.com/watch?v=PL0TAKTN4Ik
1•vaduga•19m ago•0 comments

Feedback loops for organizing hardware development

https://mechanomy.com/posts/260608_valueLoops/
1•bcon•20m ago•0 comments

How Will Humans Generate Value in a Post-AI Society?

https://demonstrandom.com/essays/posts/human_value_post_ai/
1•demonstrandom•21m ago•0 comments

Ask HN: Where do you like to consume content anymore?

1•selectedambient•23m ago•0 comments

Show HN: Built software to orchestrate AI and human loops

https://github.com/sparckix/cognitive-firm
1•Sparckix•31m ago•0 comments

Show HN: Lead Qualifier – research agent turning a LinkedIn URL into a dossier

https://lead.robowrite.ai/
1•mehdizare•35m ago•0 comments

Trophic memory, deer, and a unique scientific object

https://thoughtforms.life/trophic-memory-deer-and-a-truly-unique-scientific-object/
1•thunderbong•36m ago•0 comments

Tech Influence Watch

https://influence.citationneeded.news
1•archagon•41m ago•0 comments

Malware Insights – Miasma Campaign

https://cookie.engineer/weblog/articles/malware-insights-miasma-campaign.html
1•cookiengineer•50m ago•0 comments

Why Are Birthrates Down? Two New Studies Point to Phones

https://www.nytimes.com/2026/06/08/us/iphone-birthrate-decline-studies.html
2•1vuio0pswjnm7•53m ago•0 comments

Just The Recipe – paste any recipe URL, get just the food

1•jonwardsfull•54m ago•0 comments

Apple's iOS 27 Is Filled with Hints About Its Upcoming Foldable iPhone

https://www.bloomberg.com/news/articles/2026-06-09/apple-s-ios-27-is-filled-with-hints-about-its-...
1•jmsflknr•54m ago•0 comments

Configuring Agentic AI Coding Tools: An Exploratory Study

https://arxiv.org/abs/2602.14690
1•wek•55m ago•0 comments

Bringing the latest Gemini models to Apple developers

https://blog.google/innovation-and-ai/technology/developers-tools/bringing-gemini-models-to-apple...
1•xnx•1h ago•0 comments

Open Credential Lifecycle Standard

https://gist.github.com/abrambailey/e8748f370975027430d6fab37e31b841
1•funkdified•1h ago•1 comments