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?

How should we teach digital research workflows to undergrad philosophy students?

1•lebronocta•4m ago•0 comments

Wabi Tek Sabi

https://www.wabiteksabi.com/index.html
1•klez•4m ago•0 comments

Educational Sticker

https://apparatverk.studio/notes/educational-sticker/
1•px00•5m ago•0 comments

"Bricks & minifigs can stuff it" – Patreon CEO [video]

https://www.youtube.com/watch?v=36jxNeV5L1Q
1•ShinyLeftPad•7m ago•0 comments

Azure Linux Desktop

https://www.boxofcables.dev/azure-linux-desktop-a-build-2026-mashup-of-wslc-winui-reactor-and-azu...
1•haydenbarnes•9m ago•0 comments

Let the agents democratize open source

https://world.hey.com/dhh/let-the-agents-democratize-open-source-9fd630a9
1•teekert•13m ago•0 comments

Magecart skimmer turns Stripe into a malware command server

https://sansec.io/research/stripe-api-skimmer-infrastructure
1•berlianta•15m ago•0 comments

Verilator Binary for Windows Without WSL or VM or OSS-CAD Suite or Perl Wrapper

https://github.com/withlimon/verilator-windows
1•limondas•16m ago•1 comments

Fixing "unfixable" 41TB BTRFS by Claude's one-shot

https://mloduchowski.com/-mounted-bitter-fs-better-with-claude/
1•qdotme•20m ago•0 comments

Download cash counter and help me

https://play.google.com/store/apps/details?id=com.logicforge.bdcash&hl=en_US
1•bdcashcounter•26m ago•0 comments

Turn HAR Files, Claude Code, Copilot CLI, and Codex CLI Logs into ATIF

https://github.com/waldekmastykarz/atifact
1•waldekm•26m ago•0 comments

Show HN: Sidekick – The zot coding agent, one click away on macOS

https://github.com/patriceckhart/zot-sidekick
10•patriceckhart•27m ago•0 comments

How much did OpenAI pay for Tomoro?

https://www.aienablementinsider.com/p/how-much-did-openai-pay-for-tomoro
1•dylancollins•29m ago•0 comments

I Found the US Nuclear Detection System in Space (GPS)

https://www.youtube.com/watch?v=DjLnIb41DuQ
1•valeg•30m ago•0 comments

You can now use your Gmail account in Proton Mail

https://proton.me/blog/proton-mail-connect-gmail
3•Topfi•32m ago•0 comments

Integer Overflow in Postgres

https://www.crunchydata.com/blog/the-integer-at-the-end-of-the-universe-integer-overflow-in-postgres
1•tosh•33m ago•0 comments

AI coding agents use your technology

https://developer.microsoft.com/blog/how-ai-coding-agents-actually-use-your-technology
1•waldekm•33m ago•0 comments

The AX stack: what's fixed, where you can win

https://developer.microsoft.com/blog/the-ax-stack-whats-fixed-where-you-can-win
1•waldekm•34m ago•0 comments

New version of "peers" – the AI couple doing things

https://github.com/c0decave/peers
1•dash0r•42m ago•0 comments

Bitcoin back above $61,000 after rout leads to $1.6B liquidations

https://www.coindesk.com/markets/2026/06/06/bitcoin-back-above-usd61-000-after-rout-leads-to-usd1...
3•Varun-Sakhuja•47m ago•0 comments

Bitrig – The best way to build native Swift apps with AI

https://bitrig.com
1•Austin_Conlon•49m ago•0 comments

Are AI chatbots making us lose control of our brains?

https://www.technologyreview.com/2026/06/05/1138427/are-ai-chatbots-making-us-lose-control-of-our...
2•joozio•49m ago•0 comments

Adaptive Low-Rank Transformer with Dynamic Expert Routing for Continual Learning

https://zenodo.org/records/20064618
1•jballanc•54m ago•0 comments

Show HN: Summarize YT Video by pasting url into AI chat[video]

https://www.youtube.com/watch?v=BblwmuFhhOI
1•julienreszka•1h ago•1 comments

39C3: The art of text rendering (Nicolas Rougier)

1•signa11•1h ago•0 comments

Ask HN: For non-hackers/nerds, why do you read HN?

2•throwaway2037•1h ago•2 comments

Reversible Computing

https://en.wikipedia.org/wiki/Reversible_computing
1•peter_d_sherman•1h ago•0 comments

Mega-cap IPOs: Implications for institutional investors and index managers

https://www.ssga.com/nl/en_gb/institutional/insights/mega-cap-ipos-implications-for-institutional...
1•akg_67•1h ago•0 comments

How do non-green plants work? (2013)

https://plantsandprejudice.wordpress.com/2013/08/07/how-do-non-green-plants-work/
2•downbad_•1h ago•0 comments

Canada bans Texas cattle over flesh-eating screwworm outbreak in US

https://www.bbc.com/news/articles/cevpv3r7jmpo
5•1659447091•1h ago•1 comments