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?

The Sound and Music of 'Hyper Light Drifter' [video]

https://gdcvault.com/play/1024135/The-Sound-and-Music-of
1•hyperific•5m ago•0 comments

VPhone Workstation – create and use virtual iPhones on Mac

https://github.com/zqxwce/vphone-ws
1•71bw•9m ago•0 comments

Germany's Electricity Rationing Is No Longer Unthinkable

https://spectator.org/germanys-electricity-rationing-is-no-longer-unthinkable/
2•mpweiher•24m ago•1 comments

ChatGPT accounts for 80% of identifiable House AI spending

https://www.cnbc.com/2026/08/03/openai-chatgpt-anthropic-congress-house-ai-spending.html
1•tosh•29m ago•0 comments

Funeral for Oscar-winning songwriter Glen Hansard

https://apnews.com/article/glen-hansard-funeral-dublin-bono-eddie-vedder-46b1d6ef619979afb5c0a031...
1•metabagel•31m ago•0 comments

Robotic Evals

1•andrewlyu•34m ago•0 comments

Why Paris Is Obsessed with Chartreuse Liqueur

https://www.bloomberg.com/news/articles/2026-08-05/how-chartreuse-conquered-paris-wine-bars-to-be...
1•petethomas•36m ago•0 comments

An AI Approach to Verified Production Cryptographic Libraries

https://arxiv.org/abs/2608.00965
1•sbulaev•40m ago•0 comments

The Labour Market Is a Network, Not an Auction

https://andrewmarritt.substack.com/p/the-labour-market-is-a-network-not
2•hunglee2•41m ago•0 comments

Why 70 of Website Replatforming Go over Budget

https://focusreactive.com/blog/why-70-of-website-replatforming-projects-go-over-budget-and-how-to...
1•katyadrozd•43m ago•0 comments

Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks

https://www.costclaw.io/
1•ucsandman•45m ago•0 comments

Show HN: Lapse - a notes app. but also shared memory space for your agents (MCP)

https://lapse.in
2•hariprasd•46m ago•0 comments

Show HN: A file-based protocol for two AI agents to talk until they agree

https://agent-talk.reindent.com/
1•reindent•46m ago•0 comments

Scott Bessent's yen intervention signals new era of US 'currency activism'

https://www.ft.com/content/1be83506-b897-4c26-97cc-445d7354ee6f
1•petethomas•47m ago•0 comments

Israel Pays Trump's Ex-Campaign Chief $46M to Shape What ChatGPT Says About Gaza

https://www.ibtimes.co.uk/israel-ai-influence-campaign-chatbots-1812371
9•handfuloflight•49m ago•0 comments

Noorm – Schema and migrations as plain SQL files, no ORM

https://noorm.dev/
2•daniloa•52m ago•0 comments

Show HN: Emil: Emacs-style minimalist editor Beta test release

https://github.com/nicholascarroll/emil
1•emil_coder•52m ago•0 comments

The probabilistic quantum consensus is wrong. We just broke the timeline

https://prometheusdynamics.ca/
1•WilliamDenyer•54m ago•0 comments

Rust-lang/rust is adopting an LLM policy

https://blog.rust-lang.org/inside-rust/2026/08/05/rust-langrust-is-adopting-an-llm-policy/
10•afdbcreid•54m ago•2 comments

Show HN: Rever-browser – AI-agent browser for reverse-engineering

https://github.com/greekr4/rever-browser
1•taevirus•55m ago•0 comments

Pi-Msg: Drive Pi from XMPP

https://github.com/zachpmanson/pi-msg
2•handfuloflight•55m ago•0 comments

User Controlled Authorization Network (UCAN) Specification

https://github.com/ucan-wg/spec
1•luu•55m ago•0 comments

Samsung, SK Hynix test Chinese chip tools as hedge against US risks

https://www.reuters.com/world/china/samsung-sk-hynix-test-chinese-chip-tools-hedge-against-us-ris...
2•u1hcw9nx•56m ago•1 comments

Hollywood is entering its AI era

https://www.economist.com/business/2026/08/04/hollywood-is-entering-its-ai-era
3•petethomas•58m ago•0 comments

Nono: Sandbox any AI agent in seconds – zero setup, zero latency

https://github.com/nolabs-ai/nono
1•handfuloflight•58m ago•0 comments

/agent-talk

https://github.com/reindent/agent-talk
1•reindent•59m ago•0 comments

Shai Hulud campaign strikes NPM again

https://research.jfrog.com/post/shai-hulud-is-back-august/
2•cribwi•59m ago•0 comments

Bun: If you need a paragraph-long comment, the code is wrong

https://github.com/oven-sh/bun/pull/36928/files/d96fc582519a10419366c9d02f6149da4656c610
1•tomlockwood•1h ago•1 comments

July breaks drought and heat records in France

https://www.lemonde.fr/en/environment/article/2026/08/05/july-breaks-drought-and-heat-records-the...
1•geox•1h ago•0 comments

The Gelato Calculator

https://www.absurdlyoptimized.com/recipes/gelato/
2•bkazez•1h ago•0 comments