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

Just the Browser – Just the Browser

https://justthebrowser.com/
1•thm•34s ago•0 comments

McKinsey asks graduates to use AI chatbot in recruitment process

https://www.theguardian.com/business/2026/jan/14/mckinsey-graduates-ai-chatbot-recruitment-consul...
1•chrisjj•1m ago•0 comments

Ask HN: Could AI prevent the decline of social media by highlighting usernames?

1•amichail•1m ago•0 comments

Grafana Dashboard on Google Cloud VM for Apache NuttX RTOS

https://lupyuen.org/articles/dashboard
1•lupyuen•2m ago•0 comments

Anthropic Labs

https://www.anthropic.com/news/introducing-anthropic-labs
2•kerim-ca•4m ago•0 comments

The Vampire Paradox

https://worldsensorium.com/the-vampire-paradox/
1•dnetesn•4m ago•0 comments

We're Evolving Beyond This Rock

https://nautil.us/were-evolving-beyond-this-rock-right-now-1261129/
1•dnetesn•5m ago•0 comments

Show HN: My Own AWS

https://blog.sanyamgarg.com/#/posts/private-cloud
2•sammylis•5m ago•0 comments

Show HN: ProtocolSoup – Interactive Sandbox for OAuth, OIDC, SAML, Spiffe, SSF

https://protocolsoup.com/
2•ParleSec•7m ago•0 comments

Grok will be integrated into Pentagon networks, Hegseth says

https://www.theguardian.com/technology/2026/jan/13/elon-musk-grok-hegseth-military-pentagon
2•voxleone•9m ago•0 comments

We let an AI help us decide which startups to invest in for 6 months

https://theventures.substack.com/p/we-let-an-ai-help-us-decide-which
1•jefflee0127•10m ago•0 comments

'Hermès of durian': Luxury fruit cashing in on China's billion-dollar appetite

https://www.bbc.com/news/articles/cz7ndzw28v4o
1•bookofjoe•11m ago•1 comments

I built an email client with local AI. open source it?

1•eibrahim•11m ago•0 comments

The Wine That Doesn't Have a Name Yet: Inside the Chemistry of Co-Fermention

https://fruitwine.substack.com/p/the-wine-that-doesnt-have-a-name
2•djrivard•11m ago•0 comments

Whenwords: A relative time formatting library, with no code

https://github.com/dbreunig/whenwords
1•simonpure•12m ago•0 comments

Responsible Disclosure: Chimoney Android App and KYCaid

https://shkspr.mobi/blog/2026/01/responsible-disclosure-chimoney-android-app-and-kycaid/
2•ColinWright•12m ago•0 comments

ChatPRD/lennys-podcast-transcripts: Transcripts from all Lenny's podcasts

https://github.com/ChatPRD/lennys-podcast-transcripts
1•emreb•14m ago•0 comments

Ask HN: Would you consider an explicit AST/NNF logic engine a "Core of XAI"?

https://TreeOfKnowledge.eu
2•JAnicaTZ•14m ago•1 comments

I Built Videos with Soro2

https://soro2.net
1•xbaicai•14m ago•1 comments

Show HN: GitHug – Discover new GitHub users

https://githug.link
1•daviducolo•16m ago•0 comments

Zuckerberg Launches Meta Compute, plans to build hundreds of gigawatts

https://www.threads.com/@zuck/post/DTa3-B1EbTp
1•ppsreejith•18m ago•1 comments

Show HN: Run LLMs in Docker for any language without prebuilding containers

https://github.com/mheap/agent-en-place
2•mheap•19m ago•0 comments

Show HN: Arche Resizer – a fast browser tool to resize images without uploads

https://arche-resizer.vercel.app/
1•SRMohitkr•20m ago•0 comments

Xinjiang whistleblower faces deportation to China

https://www.dw.com/en/xinjiang-whistleblower-faces-deportation-to-china-lawyer/a-75475876
2•perihelions•21m ago•0 comments

Interrail/Eurail data security breach

https://www.interrail.eu/en/ni/data-security-incident
1•beanslover•21m ago•0 comments

How to Find the Real Decision Makers in Nova Scotia Government

https://scotiasignal.ca/blog/how-to-find-decision-makers-nova-scotia-government
1•5eva•22m ago•0 comments

Fast and flexible observability with canonical log lines (2019)

https://stripe.com/blog/canonical-log-lines
1•tosh•23m ago•0 comments

AI Hairstyle Changer

https://hairstyleaichanger.com/
1•Fsen•23m ago•1 comments

Ask HN: What's your opinion on a VR/XR business?

1•izwasm•23m ago•0 comments

NCSA (National Center for Supercomputing): The unsung hero of Internet history

https://dfarq.homeip.net/ncsa-the-unsung-hero-of-internet-history/
2•giuliomagnifico•24m ago•0 comments