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?

Why does tsgo use so much memory?

https://zackoverflow.dev/writing/why-does-tsgo-use-so-much-memory/
1•luispa•24s ago•0 comments

Tornado Cash's Roman Storm Could Face 40 Years as Government Seeks New Trial

https://bitcoinmagazine.com/news/tornado-cashs-roman-storm-new-trial
1•bushwart•1m ago•0 comments

Use CIRCLES framework to find your first digital product immediately

1•xnslx•4m ago•0 comments

How we made hit video game Prince of Persia

https://www.theguardian.com/culture/2026/jan/05/raiders-of-the-lost-ark-hit-video-game-prince-of-...
1•msephton•5m ago•0 comments

The neural basis of thought symbols identified for the first time

https://www.rockefeller.edu/news/39690-neuroscience-brain-symbols-thought-cognition/
1•marc__1•8m ago•0 comments

Sao Paulo Notes

https://marginalrevolution.com/marginalrevolution/2026/06/sao-paulo-notes.html
1•paulpauper•9m ago•0 comments

Replacing RAG with a cognitive memory stack in Elixir/OTP

https://0xcc.re/2026/05/03/skynet-towards-synthetic-neurobiology.html/
1•mikalv•10m ago•0 comments

A little progress is worth a trillion dollars

https://www.abundanceandgrowth.org/p/a-little-progress-is-worth-a-trillion
1•paulpauper•10m ago•0 comments

AWS App Runner availability change

https://docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html
1•yakkomajuri•10m ago•0 comments

Gordon Wood, RIP

https://www.nytimes.com/2026/06/08/books/gordon-s-wood-dead.html
1•paulpauper•11m ago•0 comments

AI misidentification results in wrongful arrest; man seeks justice

https://www.wsoctv.com/news/local/ai-misidentification-results-wrongful-arrest-man-seeks-justice/...
1•text0404•11m ago•0 comments

RIP software hackathons. Long live the hardware hackathon

https://blog.oscars.dev/posts/rip-software-hackathons-long-live-the-hardware-hackathon/
2•ozcap•13m ago•0 comments

The Pros and Cons of Job Hopping as an Engineer

https://spectrum.ieee.org/strategic-job-hopping
1•jnord•14m ago•0 comments

Show HN: See what ChatGPT knows about you that Claude doesn't

https://github.com/Thinklanceai/agentkeeper
1•tomtom1977•14m ago•0 comments

Judge kills entire case when both lawyers submit AI filings

https://gizmodo.com/judge-cancels-whole-case-after-lawyers-admit-they-didnt-read-ai-generated-fil...
1•alister•15m ago•0 comments

Mechanical forces from the beating heart may help prevent cancer cell growth

https://medicalxpress.com/news/2026-04-mechanical-heart-cancer-cell-growth.html
2•PaulHoule•15m ago•0 comments

Reticulum Network

https://reticulum.network/manual/whatis.html
1•josh-sematic•16m ago•0 comments

Ask HN: Is software engineering still a good career choice for new students?

1•iliashad•16m ago•1 comments

CodegenBench: Can LLMs Write Efficient Code Across Architectures?

https://arxiv.org/abs/2606.04023
1•matt_d•17m ago•0 comments

Show HN: I made the first racing game for Reddit

https://sh.reddit.com/r/SpinoGhostRacing/comments/1tx1lfo/spino_ghost_racing_monza_formula_1/
1•indest•19m ago•0 comments

Aspen – Local LLM for Mortals

https://www.runonaspen.com/
1•mayankm•22m ago•2 comments

Show HN: Live audit log of every command, file, network connection by Claude

https://github.com/yeet-src/claudefeed
1•r3tr0•23m ago•0 comments

Show HN: Persist.chat – Outreach and Sales Agents

https://persist.chat/
1•Robelk1•24m ago•0 comments

UiCA: Accurate Throughput Prediction of Basic Blocks on Intel Microarchitectures

https://arxiv.org/abs/2107.14210
1•rbanffy•25m ago•0 comments

Nagent, a uniuqe LLM loop reference implementation

https://github.com/macton/nagent
1•MintPaw•28m ago•0 comments

Oilwell

https://oilwell.app
1•dijksterhuis•29m ago•0 comments

The often-ignored system controlling your mood, memory, and focus

https://bigthink.com/perception-box/your-mind-body-connection-explained/
1•PaulHoule•31m ago•0 comments

DuckDuckGo displays a special logo when you search for FreeBSD or OpenBSD

https://duckduckgo.com/?q=freebsd
4•naturalmovement•32m ago•2 comments

UN issues AI warning after new data reveals major impact on the planet

https://www.the-independent.com/tech/ai-artificial-intelligence-un-electricity-water-sustainabili...
3•cdrnsf•33m ago•0 comments

Self Improving GTM Engineer Database

https://www.upside.tech/gtme/
2•mada299•34m ago•2 comments