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•11mo 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•11mo 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: Greptile for Security (open source)

https://www.strix.ai/blog/pentesting-every-pull-request
1•bearsyankees•1m ago•0 comments

Domain Knowledge Is the Product

https://automato.substack.com/p/your-domain-knowledge-is-the-product
1•andrewstetsenko•1m ago•0 comments

.NET 11 Preview 3 is now available

https://devblogs.microsoft.com/dotnet/dotnet-11-preview-3/
1•vyrotek•2m ago•0 comments

Skattabugz, a fast paced shootem up for the C64, C16, Vic20, Spectrum

https://orac81.itch.io/skattabugz
1•orac81•4m ago•0 comments

Configuration flags are where software goes to rot

https://00f.net/2026/04/11/config-flags/
1•birdculture•5m ago•0 comments

Alert: GitHub Bug Exposed Webhook Secrets to Recipient Endpoints

https://exploitr.com/articles/alert-github-bug-exposed-webhook-secrets-to-recipient-endpoints/
1•ahamez•6m ago•0 comments

Has_not_been_viewed_much

https://iamwillwang.com/notes/has-not-been-viewed-much/
2•wxw•7m ago•0 comments

Physicists think they've resolved the proton size puzzle

https://arstechnica.com/science/2026/04/physicists-think-theyve-resolved-the-proton-size-puzzle/
2•A_D_E_P_T•9m ago•1 comments

Ask HN: GUI or TUI for Coding Harness?

3•nwparker•13m ago•1 comments

Free, fast diagnostic tools for DNS, email authentication, and network security

https://mrdns.com/
1•dogsnews•13m ago•0 comments

Rust should have stable tail calls

https://trifectatech.org/blog/tail-calls-project-goal/
1•fanf2•13m ago•0 comments

Show HN: ILTY – AI mental health companion that does not pat your back

1•sklyarov•15m ago•0 comments

Enterprise Cloud in Central Asia

https://hyperapp.cloud
1•akmaljonmusaev•17m ago•0 comments

Poll: How likely are you to install phone apps?

1•Bender•20m ago•3 comments

I rewrote network setup for sandboxes in Rust and it sped up by 57x

https://github.com/CelestoAI/SmolVM/pull/145
2•theaniketmaurya•20m ago•0 comments

Show HN: Run Python tools on rust agents

https://github.com/eggermarc/tools-rs
2•eggermarc•24m ago•0 comments

An exhaustive review of design tool hover areas

https://tldraw.dev/blog/a-review-of-design-tool-hover-areas
1•steveruizok•27m ago•0 comments

Show HN: Putting AI in the loop for embedded dev

https://www.electronicsconsult.com/blog/ai-assisted-hardware-in-the-loop-for-embedded-linux
1•OOHehir•27m ago•0 comments

Show HN: Pave – CLI for Managing Path

https://github.com/microsoft/pave
3•cpendery•27m ago•0 comments

NASA building the first nuclear reactor-powered spacecraft. How will it work?

https://www.technologyreview.com/2026/04/14/1135848/nasa-nuclear-powered-spacecraft/
1•gnabgib•28m ago•0 comments

A simple test-time method that beats Claude Mythos on Terminal-Bench

https://llm-as-a-verifier.notion.site
1•jackykwok•28m ago•1 comments

Synctera acquires compliance startup Cable

https://www.axios.com/pro/fintech-deals/2026/04/14/synctera-compliance-startup-cable-acquisition
1•thatdrew•28m ago•0 comments

Can Michigan Become the U.S. Drone Capital?

https://www.nytimes.com/2026/04/14/business/michigan-drone-capital.html
1•rmason•29m ago•2 comments

AgentFM – A single Go binary that turns idle GPUs into a P2P AI grid

https://github.com/Agent-FM/agentfm-core
1•s4saif•30m ago•0 comments

Demoralize Your Teams Quickly and Efficiently with Micromanagement (2010)

https://www.stellman-greene.com/2010/11/29/demoralize-your-teams-quickly-and-efficiently-with-mic...
2•downbad_•32m ago•1 comments

Whop: The Gen-Z Platform That Wants to Be Your Bank, Broker and Business

https://www.forbes.com/sites/boazsobrado/2026/04/10/one-stop-whop-the-gen-z-platform-that-wants-t...
1•rmason•32m ago•0 comments

GitHub gave webhook secrets away in webhook call

1•time4tea•33m ago•0 comments

Mississippi is running out of liquor, and it's the state's fault

https://www.washingtonpost.com/nation/2026/04/12/mississippi-liquor-sales-breakdown/
2•paulpauper•34m ago•1 comments

Mamdani Plans to Open City-Owned Grocery Store in East Harlem

https://www.nytimes.com/2026/04/12/nyregion/mamdani-city-owned-grocery-store-la-marqueta.html
5•paulpauper•34m ago•1 comments

Moonsteading

https://marginalrevolution.com/marginalrevolution/2026/04/moonsteading.html
1•paulpauper•35m ago•0 comments