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?

Micro Stirling Mechanical Cryo-Cooler Teardown by Fraser(2023)

https://www.eevblog.com/forum/thermal-imaging/micro-stirling-mechanical-cryo-cooler-teardown-by-f...
1•pillars•39s ago•0 comments

Ask HN: Best Podcasts of 2026 [So Far]

1•AbstractH24•3m ago•0 comments

What if users start cloning SaaS using AI

1•mzubairtahir•4m ago•0 comments

Defending OpenClaw against indirect prompt injection

https://compsec.snu.ac.kr/blog/dualview
4•b2y•5m ago•0 comments

The Answer Citation Protocol (ACP)

https://ericstrate.com/the-answer-citation-protocol-acp-optimizing-web-architecture-for-token-eff...
1•ericstrate•6m ago•0 comments

Digital Signals Theory Book

https://brianmcfee.net/dstbook-site/content/intro.html
1•marvinborner•7m ago•0 comments

Chinese researchers just mapped human brain 478 times faster than an Nvidia A100

https://indianexpress.com/article/technology/tech-news-technology/how-chinese-researchers-just-ma...
1•ogi_ogi•8m ago•0 comments

Is wanting is the last thing for humanity to do

https://harshalgajjar.com/blog/deciding-is-the-diamond
2•DDDmatter•9m ago•0 comments

Show HN: I created a ninety second challenge for conversations that matter

https://www.AskPitch.com/duel
1•KashifNY•15m ago•0 comments

EU ADDW Driver Monitoring Mandate Takes Effect July 7, 2026

https://www.sectorjournalhq.com/news/EU_ADDW_Driver_Monitoring_Mandate_Takes_Effect_July_7_2026.html
1•goplayoutside•16m ago•1 comments

Ranked worst to best: 13 flavors of Pure Leaf iced tea

https://www.tastingtable.com/1866292/pure-leaf-iced-tea-flavors-ranked/
3•teleforce•19m ago•0 comments

Meta Now Lets Anyone Use Your Instagram Photos in AI Images–Unless You Opt Out

https://www.wired.com/story/meta-now-lets-anyone-use-your-instagram-photos-in-ai-images-unless-yo...
2•cdrnsf•19m ago•0 comments

Fagging

https://en.wikipedia.org/wiki/Fagging
2•thunderbong•27m ago•0 comments

Hundreds of staff at EY report bullying, racism and sexual harassment

https://www.theguardian.com/australia-news/2023/jul/27/ey-oceania-staff-bullying-racism-sexual-ha...
1•Alien1Being•30m ago•0 comments

Porting from Delphi to JavaScript, will unalive your blog from Delphi RSS Sites

https://delphinightmares.substack.com/p/porting-from-delphi-to-js-will-unalive
2•deeaceofbase•37m ago•1 comments

Show HN: FactIQ – a realtime econ+finance database for AI agents

https://github.com/defog-ai/factiq-plugin
1•rishsriv•38m ago•0 comments

Economics Nobel Prize 2025: Understanding Innovation-Driven Growth

https://visionias.in/blog/english/economics-nobel-prize-2025-understanding-innovation-driven-growth
1•akbarnama•39m ago•1 comments

We won $92,337 bug bounty using a single kernel 0-day

https://nebusec.ai/research/ionstack-part-2/
4•etenal•40m ago•1 comments

The Greatest Entrepreneurs in U.S. History, According to Business Historians

https://www.wsj.com/business/entrepreneurship/best-entrepreneurs-us-history-23c83c23
1•tzury•43m ago•0 comments

Meta says it's facing $1.4T in penalties in teen mental health case

https://nypost.com/2026/07/07/business/meta-says-its-facing-1-4t-in-penalties-in-teen-mental-heal...
5•NewCzech•43m ago•3 comments

ADHD Sticky Note productivity app because visualizing it WORKS

https://www.taskloco.com/
1•taskloco_nyc•46m ago•0 comments

Show HN: Ghostmeet – Self-hosted meeting transcription and summaries

https://ghostmeet.sshlab.dev/
2•swq115•49m ago•3 comments

LineageOS Statistics

https://stats.lineageos.org
1•pentagrama•49m ago•0 comments

How did Windows 95 decide that a setup program ran?

https://devblogs.microsoft.com/oldnewthing/20260707-00/?p=112508
2•soheilpro•53m ago•0 comments

Multigres Supports Listen/Notify Across Pooled Connections

https://multigres.com/blog/listen-notify
1•kiwicopple•54m ago•0 comments

Understanding how search engines work – and how we got here

https://www.searchengines.net/
1•bhartzer•56m ago•0 comments

Show HN: Plagiarism.Free – Free Plagiarism Checker

https://plagiarism.free/
1•nadermx•58m ago•0 comments

Show HN: FrankenMarkdown, Render .md Files to PDF/HTML (also in browser)

https://github.com/Dicklesworthstone/franken_markdown
1•eigenvalue•59m ago•0 comments

Tesla Home Energy Management System

https://www.tesla.com/en_ca/tesla-home
1•voisin•1h ago•0 comments

The Two Waters, one extra-dimensional

1•tintweezl•1h ago•2 comments