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

Gemini-heal – rate limiting and MALFORMED_FUNCTION_CALL recovery for Gemini API

https://github.com/emotix/gemini-heal
1•emotixco•1m ago•1 comments

RuView – WiFi DensePose: See Through Walls with WiFi

https://github.com/ruvnet/RuView
1•_____k•3m ago•0 comments

Smog and Co – a full offline-first Belgian Sign Language platform

https://zias.be/work/smog
1•ziasvannes•3m ago•1 comments

Claude's Cycles: Claude Opus 4.6 solves a problem posed by Don Knuth [pdf]

https://www-cs-faculty.stanford.edu/~knuth/papers/claude-cycles.pdf
1•fs123•4m ago•0 comments

The Xkcd thing, now interactive

https://editor.p5js.org/isohedral/full/vJa5RiZWs
2•memalign•5m ago•0 comments

Logic gates as persistent stateful tasks – a BCD decoder built on a VM

1•tracyspacy•5m ago•0 comments

Building a Dependency-Free GPT on a Custom OS

https://hackaday.com/2026/03/03/building-a-dependency-free-gpt-on-a-custom-os/
1•appleroll•5m ago•0 comments

How AGI-is-nigh doomers own-goaled humanity

https://garymarcus.substack.com/p/how-agi-is-nigh-doomers-own-goaled
1•only_in_america•6m ago•0 comments

The beauty and terror of modding Windows

https://windowsread.me/p/windhawk-explained
2•wild_pointer•12m ago•1 comments

Show HN: Oxmgr – a lightweight PM2 alternative written in Rust

1•vladimir-urik•13m ago•0 comments

Anti-Corporatization of Schools

https://nancyebailey.com/corporatization/
1•robtherobber•16m ago•0 comments

Fast-Servers: An Interesting Pattern

https://geocar.sdf1.org/fast-servers.html
1•birdculture•17m ago•0 comments

Ask HN: Who still works async and has a 'no meetings' work policy in 2026?

3•RaulOnRails•20m ago•0 comments

Can You Train a Computer?

https://twitter.com/DimitrisPapail/status/2028669695344148946
1•vismit2000•21m ago•0 comments

Gemini CLI Explained: Everything You Need to Know About Google's AI Coding Agent

https://www.theneuron.ai/explainer-articles/gemini-cli-explained-everything-you-need-to-know-abou...
1•mariuz•21m ago•0 comments

Show HN: Gnosis – Turns pull requests into guided walkthroughs

https://github.com/oddur/gnosis
3•oddurmagnusson•23m ago•1 comments

Lunar Eclipse 2026: How to take the best blood moon photos with your phone

https://mashable.com/article/blood-moon-total-lunar-eclipse-2026-phone-photos
1•smurda•23m ago•0 comments

It's never just that simple

https://www.neverjust.net/
1•itzlambda•23m ago•0 comments

Agent Policies; codify rules and automate agent guidance

https://blog.devleaps.nl/agent-policies-guidance-for-ai-8a03ea20bbca
1•philipp-gayret•25m ago•0 comments

Show HN: WhisprMe – Anonymous messaging inside Telegram with Stars micropayments

https://whisprme.app
1•paulbrickman•27m ago•1 comments

Show HN: Logos – a scripting language for when Bash gets unreadable after line 3

https://github.com/codetesla51/logos
1•uthmandev•31m ago•0 comments

Spec and Data

1•alfarez•31m ago•0 comments

China's 450kmph bullet train is the fastest ever built

https://www.executivetraveller.com/news/china-cr450-world-s-fastest-bullet-train
3•teleforce•33m ago•0 comments

Become a Coder DJ

https://loopmaster.xyz/dj?hn
1•stagas•34m ago•0 comments

Show HN: TrustStack – Vendor Review with Evidence Pack, Diff and Approval Log

https://b2apps-hwbghfetgtamcmfb.japanwest-01.azurewebsites.net/demo
1•hodachi•34m ago•0 comments

I Always Wanted to Know My True Age – So I Built a Tool to Find Out

https://medium.com/@filipacsr/i-always-wanted-to-know-my-true-age-so-i-built-a-tool-to-find-out-c...
1•filipacsr•39m ago•1 comments

Fixpoints to think clearly

https://blog.yellowflash.in/posts/2026-03-03-fixpoints-for-clarity.html
1•yellowflash•42m ago•0 comments

Dec PDP-8 emulator running FOCAL 69 in 4K for Arduino DUE and Arduino MEGA 2560

https://www.hackster.io/news/nino-ivanov-brings-dec-s-pdp-8-minicomputer-out-of-the-60s-and-onto-...
1•JPLeRouzic•48m ago•0 comments

Show HN: Open-Source Article 12 Logging Infrastructure for the EU AI Act

1•systima•50m ago•0 comments

Show HN: OpenClaw agents that read the same task board and mention each other

https://squadofagents.com/
1•jacobsyc•55m ago•0 comments