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

Tailsitter Drone Development Story

https://twitter.com/anduriltech/status/1991229412071661719
1•keepamovin•1m ago•0 comments

NASA's 3I/Atlas Image Gallery

https://science.nasa.gov/solar-system/comets/3i-atlas/comet-3i-atlas-image-gallery/
2•aggrrrh•5m ago•0 comments

ArcOS – A natural-language Cognitive Clone OS

https://github.com/Takeshi-Sakamoto5/ArcOS
1•takeshi_sakamo•7m ago•0 comments

PHP 8.5 gets released today, here's what's new

https://stitcher.io/blog/new-in-php-85
2•brentroose•9m ago•0 comments

Nazi bombs, torpedo heads and mines: how marine life thrives on dumped weapons

https://www.theguardian.com/environment/2025/nov/20/oceans-germany-baltic-sealife-reefs-toxic-sec...
2•ggm•9m ago•0 comments

Niri Is a Pretty Cool Wayland Compositor

https://www.youtube.com/watch?v=11FrmMPPZ10
1•Babkock•12m ago•0 comments

Brownouts Reveal System Boundaries

https://jyn.dev/brownouts-reveal-system-boundaries/
1•zdw•12m ago•0 comments

Show HN: Reproducible Dotfiles with Nix Flakes

https://github.com/momeemt/config
2•momeemt•14m ago•0 comments

Show HN: Adviser – User-friendly CLI tool for running jobs in the cloud

https://github.com/adviserlabs/docs
1•reducks•14m ago•0 comments

Learn the Basics of Google Antigravity

https://www.youtube.com/watch?v=nTOVIGsqCuY
2•ms7892•15m ago•0 comments

Moving Beyond the NPM Elliptic Package

https://soatok.blog/2025/11/19/moving-beyond-the-npm-elliptic-package/
1•zdw•16m ago•0 comments

PCI Express over Ethernet [pdf]

https://grouper.ieee.org/groups/1722/contributions/2025/20250513_IEEE1722_PCIeOverEthernetProposa...
2•geerlingguy•16m ago•0 comments

Show HN: An A2A-compatible, open-source framework for multi-agent networks

https://github.com/openagents-org/openagents
3•snasan•23m ago•0 comments

Report AI TECH Talking to Windows' Copilot AI makes a computer feel incompetent

https://www.theverge.com/report/822443/microsoft-windows-copilot-vision-ai-assistant-pc-voice-con...
1•alsetmusic•24m ago•0 comments

LLMs End the 15-Year MARL Era and Redefine Multi-Agent Collaboration

https://medium.com/@openagents/the-end-of-a-15-year-marl-era-how-llms-are-redefining-multi-agent-...
1•snasan•28m ago•0 comments

NWSL launches initiative to have all players, coaches and staff trained in CPR

https://www.espn.com/soccer/story/_/id/47024532/angel-city-savy-king-hopes-cpr-program-make-nwsl-...
1•1659447091•32m ago•1 comments

MPEG-2 DCT Recompression FAQ (2003)

https://forum.doom9.org/showthread.php?&threadid=63587
1•exvi•33m ago•0 comments

Show HN: I Built an Animated UI Library for React Lovers

https://ogblocks.dev/
1•ItsKaranKK•34m ago•2 comments

Basalt Woven Textile – MaterialDistrict

https://materialdistrict.com/material/basalt-woven-textile/
4•rbanffy•35m ago•0 comments

Relative toposes for artificial general intelligence [video]

https://www.youtube.com/watch?v=JQ0iyKZ-ZRw&list=PLq6qUEvr5AcqwHDndHHrReQY8qjdOMAAP&index=2
2•measurablefunc•37m ago•1 comments

Are large language models worth it?

https://nicholas.carlini.com/writing/2025/are-llms-worth-it.html
2•vinhnx•38m ago•0 comments

Some Thoughts on AI

https://twitter.com/GavinSBaker/status/1991248768654803337
2•gmays•39m ago•0 comments

Inside Rust's std and parking_lot mutexes – who wins?

https://blog.cuongle.dev/p/inside-rusts-std-and-parking-lot-mutexes-who-win
1•signa11•44m ago•0 comments

What I learned from analyzing ultra-lightweight browser racing games

1•zduoduo•47m ago•1 comments

Show HN: FB Album Downloader

https://chromewebstore.google.com/detail/fb-album-downloader/cgkgapbmopldaebaecjjgiopdlkkaolo
1•qwikhost•59m ago•0 comments

Adobe to Acquire Semrush

https://news.adobe.com/news/2025/11/adobe-to-acquire-semrush
1•rajeevk•1h ago•0 comments

#!magic, details about the shebang/hash-bang mechanism on various Unix flavours

https://www.in-ulm.de/%7Emascheck/various/shebang/
4•js2•1h ago•0 comments

Jack Conte on "an algorithm that doesn't rot your brain"

https://www.nytimes.com/2025/11/19/opinion/patreon-algorithms-social-media-internet.html
3•dougb5•1h ago•1 comments

Saudi Arabia's Prince Has Big Plans, but His Giant Fund Is Low on Cash

https://www.nytimes.com/2025/11/19/business/pif-saudi-arabia-fund-problems.html
6•mmooss•1h ago•2 comments

Detect Fake Google Reviews with This Open Source Project

https://github.com/doncoriolan/google-fake-reviews
1•mike_prixe•1h ago•0 comments