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?

Screenless Smartphone Patent

https://carsafe.org/soundmode/
2•ASFsound•4m ago•0 comments

Show HN: Modular – drop AI features into your app with two function calls

https://modular.run
2•modular_dev•9m ago•1 comments

The race to build the next WordPress

https://opencomputer.dev/blog/the-race-to-build-the-next-wordpress/
3•iacguy•10m ago•0 comments

Show HN: I built a local Elixir/Python pipeline to curate 14,000 RAW photos

https://qwelian.com/posts/FINE_SHYT_Intelligent_Curation_Tagging_for_Creative_Workflows
1•qweliantanner•11m ago•0 comments

How to Set Up OneBusAway Maglev with Bay Area Transit Data

https://opentransitsoftwarefoundation.org/2026/04/setting-up-maglev-bay-area-transit-data/
1•aaronbrethorst•12m ago•0 comments

Linux Foundation: Building a RISC-V CPU Core (LFD111x)

https://training.linuxfoundation.org/training/building-a-riscv-cpu-core-lfd111x/
1•xlmnxp•14m ago•0 comments

Humanoid robots race runners at Beijing half marathon [video]

https://www.youtube.com/watch?v=WnCfMRhbhZQ
1•mgh2•18m ago•0 comments

Electric Wind-Up Plane Uses Supercapacitors for Free Flight Fun

https://hackaday.com/2026/04/18/electric-wind-up-plane-uses-supercapacitors-for-free-flight-fun/
1•lxm•18m ago•0 comments

Show HN: Self-healing browser harness via direct CDP

https://github.com/browser-use/browser-harness
1•gregpr07•19m ago•0 comments

A minimally speaking autistic man just wrote a best-selling book. Or did he?

https://www.theatlantic.com/books/2026/04/who-really-wrote-autistic-author-woody-brown-novel/686814/
1•xuojbi•20m ago•0 comments

Mixture-of-Depths Attention

https://arxiv.org/abs/2603.15619
2•neehao•21m ago•1 comments

Claude Token Counter, now with model comparisons

https://simonwillison.net/2026/Apr/20/claude-token-counts/
1•twapi•27m ago•0 comments

Show HN: Vitals – Score your financial health and explain what the numbers mean

https://myfinance-vitals.streamlit.app/
1•pavanhebli•37m ago•0 comments

The Rise of the Outcome Engineer

https://www.outcomeops.ai/blogs/the-rise-of-the-outcome-engineer
3•geetee•42m ago•0 comments

B2B (bot-to-bot) commerce FAQ

https://dialtoneapp.com/faq
1•fcpguru•42m ago•0 comments

Why Birds Were the Only Dinosaurs to Survive Mass Extinction

https://www.scientificamerican.com/article/an-asteroid-extinguished-all-the-dinosaurs-except-for-...
4•bryanrasmussen•45m ago•2 comments

The next segment of California's solar canal initiative

https://bsky.app/profile/dustinmulvaney.bsky.social/post/3mjtcite7qk2s
1•mooreds•45m ago•0 comments

From Worm to Human: Scaling Brain Emulation

https://pdf.isaak.net/scaling-emulations
1•andreygrehov•45m ago•0 comments

Financial aid letters aren't designed to be compared. That's the problem

https://www.dakhila.ai/blog/financial-aid-letters-arent-designed-to-be-compared
1•mayankbansal10•48m ago•0 comments

The Uncanny Valley and the Rising Power of Anti-AI Sentiment

https://localscribe.co/posts/uncanny-valley-and-rising-power-of-anti-ai-sentiment/
2•jcbritton•49m ago•0 comments

Why one of the largest digital banks chose Clojure [video]

https://www.youtube.com/watch?v=pleo1VA9D70
4•amb135cm•55m ago•0 comments

Show HN: I Spy AI – Detect AI-Generated Images, with an MCP Server

https://www.ispyai.io/
1•shawhunterm•56m ago•0 comments

Moon-joy: they should have sent a poet (so they did)

https://nothingbutawordbag.substack.com/p/moon-joy-they-should-have-sent-a
1•bryanrasmussen•56m ago•0 comments

Canada's PM calls economic ties with US a weakness that must be corrected

https://abcnews.com/Business/wireStory/canadas-prime-minister-economic-ties-us-weakness-corrected...
3•jmward01•56m ago•1 comments

OpenEMIS-MCP – human English (or Arabic) queries over a school system

1•drkhindol•59m ago•0 comments

Show HN: A lightweight way to make agents talk without paying for API usage

https://juanpabloaj.com/2026/04/16/a-lightweight-way-to-make-agents-talk-without-paying-for-api-u...
2•juanpabloaj•1h ago•0 comments

Go news Android app revamped with the help of Claude Code

https://play.google.com/store/apps/details?id=com.minaandrawos.golangnews&hl=en_US
2•minaandrawos•1h ago•1 comments

Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
1•luu•1h ago•0 comments

Bank Python

https://calpaterson.com/bank-python.html
2•Redoubts•1h ago•0 comments

Show HN: TRELLIS.2 image-to-3D running on Mac Silicon – no Nvidia GPU needed

https://github.com/shivampkumar/trellis-mac
16•shivampkumar•1h ago•0 comments