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?

Is it just me, or Opus 4.6 is sounding bit dumb lately

1•rambrrest•1m ago•0 comments

OmniSearch: Fast Windows file search built with Tauri, Rust, and C++

https://github.com/Eul45/omni-search
1•eyuel_engida•1m ago•0 comments

SKHynix Announces "Strategic Investment" in European Semiconductor Startup

https://www.hpcwire.com/off-the-wire/semidynamics-secures-sk-hynix-investment-to-advance-memory-c...
1•Bluextend•5m ago•0 comments

Amazon Is Pulling Support for Kindles from 2012 or Earlier. What to Do Now

https://www.cnet.com/tech/computing/amazon-pulls-the-plug-on-older-kindle-models/
2•bookmtn•5m ago•0 comments

We put all 4 Gemma 4 models in one Telegram bot. Try it and see how we built it

https://seqpu.com/UseGemma4In60Seconds/
1•fredmendoza•7m ago•1 comments

Essay explainging OpenAI's safety collapse [video]

https://www.youtube.com/watch?v=bta18wTOr_k
1•vincentkriek•7m ago•0 comments

Wild chimpanzees waging 'civil war' with coordinated attacks between groups

https://www.theguardian.com/environment/2026/apr/09/civil-war-chimpanzee-group-closer-to-human-co...
2•cebert•8m ago•0 comments

Show HN: A native Compose Desktop host for macOS

https://github.com/letmutex/compose-native-host
1•letmutex•9m ago•0 comments

Python Is Dead

https://calebfenton.substack.com/p/python-is-dead
2•calebfenton•11m ago•1 comments

Show HN: Creating OCD versions of a yearly calendar

https://calendar-architect.pages.dev
1•szemy2•13m ago•1 comments

PostgreSQL REST API from SQL Scripts

https://npgsqlrest.github.io/blog/sql-rest-api.html
1•vbilopav•17m ago•0 comments

FIFA World Cup's best shirts are 30 years old

https://www.cnn.com/2026/04/10/style/fifa-world-cup-best-shirts
1•Tomte•18m ago•0 comments

Macs crash after 49 days of uptime?

https://sixcolors.com/link/2026/04/macs-crash-after-49-days-of-uptime/
3•jmsflknr•19m ago•0 comments

C++23 Support in MSVC Build Tools 14.51

https://devblogs.microsoft.com/cppblog/c23-support-in-msvc-build-tools-14-51/
1•pjmlp•19m ago•0 comments

Thoughts on AI for Software Development

https://herrherrmann.net/blog/thoughts-on-ai-for-software-development/
1•herrherrmann•21m ago•0 comments

The Skeleton and the Soul

https://postcorporate.substack.com/p/the-skeleton-and-the-soul
1•gnostikka•22m ago•0 comments

Show HN: Realtime Skybox for Camera Background

https://lana-ai.app
1•zilvinassebeika•23m ago•0 comments

Show HN: LunarGate – a self-hosted OpenAI-compatible LLM gateway

https://github.com/lunargate-ai/gateway
2•jmartenka•24m ago•0 comments

Samsung One UI 8.5 beta reaches Galaxy S23, Fold5, Flip5, and more

https://www.notebookcheck.net/Samsung-One-UI-8-5-beta-reaches-Galaxy-S23-Fold5-Flip5-and-more.127...
1•DarrylLinington•26m ago•0 comments

What social media would you build to make big bank before next week?

1•iNeedMoneyFast•26m ago•0 comments

'The Thinking Game' [video]

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

Israel Government approves record 34 new West Bank settlements

https://www.timesofisrael.com/government-formally-approves-34-new-settlements-as-it-acts-to-deepe...
1•johnbarron•30m ago•0 comments

Ads in ChatGPT

https://help.openai.com/en/articles/20001047-ads-in-chatgpt
3•cbility•31m ago•0 comments

ChatGPT Says the N-Word

https://chatgpt.com/share/69d86d6e-cc14-83e8-bdad-0c67d97a6b93
2•craichead•32m ago•0 comments

France Launches Government Linux Desktop Plan as Windows Exit Begins

https://www.numerique.gouv.fr/sinformer/espace-presse/souverainete-numerique-reduction-dependance...
143•embedding-shape•34m ago•34 comments

How to stop checking your phone all day

https://elliot.my/how-to-stop-checking-your-phone-all-day/
1•frizlab•38m ago•1 comments

Tetracono

https://tetracono.net/
1•marukodo•38m ago•0 comments

Experiential Learning

https://en.wikipedia.org/wiki/Experiential_learning
1•lucidplot•39m ago•0 comments

I built an LLM pipeline to automate emotional prosody in long-form audio

https://castory.studio/
1•18272837023•39m ago•0 comments

Show HN: Alita – Your Virtual Professional AI Assistant

https://alitagpt.com
2•Robelkidin•40m ago•0 comments