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

Show HN: TidesDB – A storage engine that outperforms RocksDB

https://github.com/tidesdb/tidesdb
1•alexpadula•7m ago•0 comments

Russia Bans Roblox

https://www.bbc.com/news/articles/cn41q11gy58o
7•disqard•12m ago•0 comments

Cassette tapes are making a comeback. Yes

https://theconversation.com/cassette-tapes-are-making-a-comeback-yes-really-268108
3•devonnull•16m ago•0 comments

Trees – J Wiki

https://code.jsoftware.com/wiki/User:Devon_McCormick/Trees
1•todsacerdoti•22m ago•0 comments

I Think I Found Something Weird About Physical Constants

https://quantummarmelade.substack.com/p/i-think-i-found-something-weird-about
2•obius_prime•31m ago•1 comments

Thieves are starting to steal RAM now that it's as expensive as gold

https://www.tomshardware.com/pc-components/ddr5/package-theft-leaves-pc-builder-without-ddr5
1•pabs3•33m ago•0 comments

Why is Anthropic saying "software engineering is done"?

https://www.augmentedswe.com/p/ai-augmented-software-engineering
2•wordsaboutcode•38m ago•2 comments

Rare earths startup Vulcan Elements scores $600M US federal government deal

https://www.ft.com/content/952f37ba-78b4-42a4-8d1b-2258de65f2c0
2•petethomas•43m ago•0 comments

Nano Banana Pro – AI Image Editor with Perfect Text Rendering and 4K

https://nanobanana.org
2•MikeMoh•46m ago•1 comments

From stadiums to cyberspace: How the metaverse will redefine sports fandom

https://phys.org/news/2025-11-stadiums-cyberspace-metaverse-redefine-sports.html
1•PaulHoule•53m ago•1 comments

Show HN: From Personal Script to Public Tool – How I Built a Windows Setup Gen

https://kaicbento.substack.com/p/from-personal-script-to-public-tool
2•kaicbento•55m ago•0 comments

New homes in London were delayed by 'energy-hungry' data centres

https://www.bbc.com/news/articles/c0mpr1mvwj3o
21•1659447091•55m ago•1 comments

Euler Conjecture and CDC 6600

https://fortran-lang.discourse.group/t/euler-conjecture-and-cdc-6600/10501
9•zaikunzhang•56m ago•1 comments

Show HN: Kling O1 Image –Consistent Image Generation from Multi-Reference Inputs

https://www.klingo1ai.net/kling-o1-image
1•lu794377•59m ago•0 comments

AI coaching tool for Engineering Managers

https://www.managercommit.dev/
1•kentwills•59m ago•0 comments

How Epstein Infiltrated the Silicon Valley Network Behind Trump's New Tech Order

https://bylinetimes.com/2025/12/03/how-epstein-infiltrated-the-silicon-valley-network-behind-trum...
10•salkahfi•1h ago•0 comments

Marvell Acquires Celestial AI

https://techstartups.com/2025/12/03/top-tech-news-today-december-3-2025/
1•CodeCrusader•1h ago•0 comments

Automatic fix for React CVE-2025-55182

https://neurolint.dev/
1•Just_Clive•1h ago•2 comments

Static analysis to prevent Zip Bombs and architectural bottlenecks

https://codeprot.com/articles/program-performance.html
1•allenz_cheung•1h ago•3 comments

The 'extinct' antelope bringing hope in the Sahara Desert

https://www.bbc.com/future/article/20251202-the-extinct-antelope-bringing-hope-in-the-sahara-desert
2•1659447091•1h ago•0 comments

Show HN: Win Setup Generator – My setup script turned into an open-source tool

https://kaic.me/win-post-install/
1•kaicbento•1h ago•0 comments

KEF: A file format for easy encryption/decryption of data

https://github.com/tpkarras/KEF
3•tpkarras•1h ago•0 comments

Apple to resist India order to preload state-run app as political outcry builds

https://www.reuters.com/sustainability/boards-policy-regulation/apple-resist-india-order-preload-...
3•happyopossum•1h ago•1 comments

Can you discover unknown elements by calculating their spectra?

https://www.scannedinavian.com/can-you-discover-unknown-elements-by-calculating-their-spectra.html
2•shae•1h ago•0 comments

JWST discovers an ancient Milky Way-like spiral galaxy

https://scienceclock.com/jwst-discovers-alaknanda-milky-way-twin-galaxy/
7•ashishgupta2209•1h ago•0 comments

Show HN: Video Watermark Remover – Remove Watermarks from Videos Instantly

https://vdraw.ai/video-watermark-remover
1•larkin_ward•1h ago•0 comments

'End-to-end encrypted' smart toilet camera is not end-to-end encrypted

https://techcrunch.com/2025/12/03/end-to-end-encrypted-smart-toilet-camera-is-not-actually-end-to...
8•bparsons•1h ago•1 comments

Understand Research Papers

https://knowthepaper.com/
2•harryhoffman•1h ago•0 comments

Show HN: A free AI Room Design tool that redesigns any room in seconds

https://vdraw.ai/ai-room-design
6•passioner•1h ago•0 comments

Ask HN: Time Travel

2•jsxyzb•1h ago•2 comments