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?

Global News Reporting Briefs

https://www.worldbrief.info
1•reader9274•1m ago•0 comments

Asynchronicity in Continuous Batching

https://huggingface.co/blog/continuous_async
1•eigenBasis•9m ago•0 comments

MiniPlasma, a Powerful LPE

https://deadeclipse666.blogspot.com/2026/05/miniplasma-powerful-lpe.html
1•geekone•13m ago•1 comments

SpaceX Is Aiming to Go Public on June 12 in What Stands to Be Biggest IPO

https://www.wsj.com/finance/spacex-is-aiming-to-go-public-on-june-12-in-what-stands-to-be-biggest...
2•tzury•16m ago•0 comments

Inside Number 0

http://johnfinnemore.blogspot.com/2025/10/inside-number-0.html
2•tobr•18m ago•0 comments

Why Is Debian Called the Universal Operating System?

https://itsfoss.com/debian-universal-operating-system/
1•susam•22m ago•0 comments

Smalltalk: The Software Industry's Greatest Failure

http://richardkulisz.blogspot.com/2011/02/smalltalk-software-industrys-greatest.html
2•parallelminds•26m ago•1 comments

F.03 Livestream [video]

https://www.youtube.com/watch?v=luU57hMhkak
1•anonymousiam•28m ago•1 comments

Desire Paths

https://en.wikipedia.org/wiki/Desire_path
1•guidedlight•31m ago•0 comments

A programming language made for agents

https://zerolang.ai/
1•yofabr•31m ago•1 comments

Discovered City in the Sky in Utah

https://www.youtube.com/watch?v=szd285GJSkE
1•VaedaStrike•31m ago•0 comments

EY retracts study after researchers discover AI hallucinations

https://www.ft.com/content/a61cbcae-95e4-4449-86e1-ef40fb306f4e
1•tzury•35m ago•1 comments

A Budget of Paradoxes, Volume I and II by Augustus De Morgan

https://www.gutenberg.org/ebooks/23100
1•YoctoYARN•35m ago•1 comments

I've spent 16 years mapping for love and money, and you should give it a shot

https://twitter.com/i/status/2055475663398953220
1•Michelangelo11•36m ago•0 comments

Knight Rider car gets speeding ticket in NYC despite being in Illinois museum

https://abc7ny.com/post/knight-rider-car-kitt-gets-speeding-ticket-brooklyn-despite-being-display...
1•866-RON-0-FEZ•38m ago•0 comments

Designing a team of agents

https://blog.frankel.ch/design-team-agents/
1•saikatsg•49m ago•0 comments

A Good Lemma Is Worth a Thousand Theorems

https://sites.math.rutgers.edu/~zeilberg/Opinion82.html
1•susam•51m ago•0 comments

Consumers sue Amazon for not refunding Trump tariff costs

https://www.reuters.com/business/retail-consumer/consumers-sue-amazon-not-refunding-trump-tariff-...
2•Anon84•51m ago•0 comments

Tarvex ZM-1 – A compiler-free weight-stationary inference accelerator

https://medium.com/towards-artificial-intelligence/ai-data-centers-are-wasting-power-moving-data-...
1•tejakusireddy•55m ago•0 comments

After extensive work with agents, the non-technical sentence is the shape I see

https://sdocs.dev/s/qtIcZCIL#k=sHoAJ4Syfkv25404v5a3Ft4gJBPZwj7aAhquWmdzDPM
1•FailMore•56m ago•0 comments

Personalization and Privacy Choice

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4795118
1•1vuio0pswjnm7•56m ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
1•saikatsg•58m ago•0 comments

Cerebras – Faster Tokens Please

https://newsletter.semianalysis.com/p/cerebras-faster-tokens-please
2•pretext•1h ago•0 comments

OpenAI super PAC paying for an army of Twitter bots to engage with their content

https://twitter.com/TheMidasProj/status/2055411833184399448
2•pretext•1h ago•1 comments

Tyouson – AI Practice tests for exams (www.tyouson.com)

1•Jaiyesh_Paraste•1h ago•0 comments

Xbox Is Now XBOX

https://www.theverge.com/news/931918/microsoft-xbox-rebrand-caps
6•namiwang•1h ago•0 comments

Frosthyon: AI assistant for 3D and general workflows

https://lumithyon.com
1•David_Founder•1h ago•0 comments

Who's composing music for my washing machine?

https://podcasts.apple.com/us/podcast/whos-composing-music-for-my-washing-machine/id73329284?i=10...
1•gmays•1h ago•0 comments

Agent Harness Engineering

https://www.oreilly.com/radar/agent-harness-engineering/
1•Garbage•1h ago•0 comments

Ask HN: Share concrete examples of benefits from AI usage

1•ChaitanyaSai•1h ago•1 comments