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?

Unitree G1 humanoid robot roller skating [video]

https://www.youtube.com/watch?v=srPz8TRpZ_8
1•nathanh4903•1m ago•0 comments

Humanoid robots to become baggage handlers in Japan airport experiment

https://www.theguardian.com/world/2026/apr/28/humanoid-robots-baggage-handlers-japan-airports
1•calcifer•6m ago•0 comments

Japan awakens to Radio Taiso exercise tradition. One face of country's longevity

https://apnews.com/article/radio-taiso-c4faaf9abb045b3f25d3fda2779943bb
1•petethomas•7m ago•0 comments

The Fallen Apple

https://mattgemmell.scot/the-fallen-apple/
1•mpweiher•7m ago•0 comments

Show HN: An Agent-First Collaboration Platform Inspired by Karpathy's AgentHub

https://community.computer/
1•lftherios•8m ago•0 comments

Will AI destroy the economy? [video]

https://www.youtube.com/watch?v=DBvrwWoyYQM
1•aluket•10m ago•0 comments

Elon Musk and Sam Altman are going to court over OpenAI's future

https://www.technologyreview.com/2026/04/27/1136466/elon-musk-and-sam-altman-are-going-to-court-o...
2•joozio•12m ago•0 comments

There's no such thing as the petrodollar

https://www.ft.com/content/be345914-7b4b-4264-bcbd-6e5e33b798c7
1•helsinkiandrew•12m ago•0 comments

EU tells Google to open up AI on Android; Google says "unwarranted intervention"

https://arstechnica.com/ai/2026/04/europe-could-force-google-to-open-android-to-other-ai-assistants/
3•vrganj•15m ago•0 comments

Show HN: Built a local-first way to make AI context reusable across tools

https://www.proxvanta.com/
1•bonjourmr•19m ago•0 comments

PayPal's $4B stablecoin is mostly held by DeFi yield farmers

https://stablecoinbrief.substack.com/p/paypals-4b-stablecoin-is-mostly-held
2•knivef•20m ago•0 comments

CrowdStrike Linux Agent Easy way to make it better

1•SilverPlate3•21m ago•0 comments

China's Great Firewall Poisoning the .icu TLD Nationwide

https://www.safwire.net/p/gfw-icu-tld
3•domainers•26m ago•0 comments

Show HN: zot – Yet another coding agent harness

https://www.zot.sh
5•patriceckhart•26m ago•0 comments

Generation Is Required for Data-Efficient Perception

https://arxiv.org/abs/2512.08854
1•E-Reverance•29m ago•0 comments

I built a business idea validator. Now I'm scared mine is the bad idea

https://www.indiehackers.com/post/i-built-a-business-idea-validator-now-im-scared-mine-is-the-bad...
1•SoloVault•32m ago•0 comments

Show HN: Screen time as a binary grid scorecard

https://twitter.com/yarsanich/status/2048076926024057231
4•yarsanich•33m ago•0 comments

MarkNext Specification v1.0

https://github.com/skorotkiewicz/marknext/blob/HEAD/MARKNEXT_SPEC.md
1•modinfo•34m ago•0 comments

Too many meetings? Try this

https://www.leadinginproduct.com/p/how-to-have-fewer-meetings
1•benkan•41m ago•0 comments

USAF Esports Team Wins the 2026 Armed Forces Esports Championship

https://armedforcessports.defense.gov/Media/News-Stories/Article-View/Article/4470862/us-air-forc...
3•nxobject•42m ago•0 comments

BYD Seal 08 debuts with Blade Battery 2.0: 1,000km range, 5-min charging, 684hp

https://electrek.co/2026/04/27/byd-seal-08-blade-battery-2-1000km-range-beijing-auto-show/
3•breve•42m ago•0 comments

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
2•breve•44m ago•0 comments

AgentCheck – Pytest for AI Agents

https://pypi.org/project/pygent-test/
2•ash_ai•47m ago•0 comments

GTFOBins

https://gtfobins.org/
48•StefanBatory•47m ago•6 comments

The next step beyond Lovable–where the AI doesn't just build the UI

https://www.extern.co.za/
2•Luncedo•47m ago•1 comments

IMDB introduces mandatory account: User reviews only readable after login

https://basic-tutorials.com/news/imdb-introduces-mandatory-account-user-reviews-only-readable-aft...
4•tokyobreakfast•48m ago•0 comments

Show HN: Modern alternative to Google Dictionary, AI-powered and context-aware

https://chromewebstore.google.com/detail/quickdef-–-ai-dictionary/ioepkncpchchdiookgpkckafhfjcehke
1•hanifrev•50m ago•0 comments

Show HN: Gate – AI workers handle dev tickets in a visual workspace

https://soliddark.net/gate
2•SolidDark•54m ago•0 comments

Cryptography Challenges KalmarCTF 2026

https://blog.zksecurity.xyz/posts/kalmar2026/
4•ahpuh•56m ago•0 comments

Curryvim, the new Neovim distro, that does not try to be VSCode

https://github.com/SyntaxError2505/curryvim
1•SyntaxError2505•1h ago•1 comments