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?

Ask HN: How can I stop Google search AI overview from spoilers?

1•ex-aws-dude•17s ago•0 comments

How hard is it to encapsulate life? The general constraints on encapsulation

https://royalsocietypublishing.org/rstb/article/380/1936/20240297/235091/How-hard-is-it-to-encaps...
1•PaulHoule•31s ago•0 comments

Finger-Nose Stylus for Touch Screens

https://variationsonnormal.com/2011/04/28/finger-nose-stylus-for-touchscreens/
1•downboots•32s ago•0 comments

The Untold Story of the Nintendo Entertainment System [video]

https://www.youtube.com/watch?v=uJvpRGibFhg
1•Timothee•59s ago•0 comments

Oct 9, 2006 to Dec 27, 2025 – 7,020 Days of Hacker News

https://da0a80a4.static-news-dtg.pages.dev/static
1•keepamovin•2m ago•1 comments

Which Humans?

https://osf.io/preprints/psyarxiv/5b26t_v1
1•surprisetalk•2m ago•0 comments

Fighting Fire with Fire: Scalable Oral Exams with an ElevenLabs Voice AI Agent

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
2•Panos•4m ago•0 comments

Meta's ads tools started switching out top-performing ads with AI-generated ones

https://www.businessinsider.com/meta-ai-generating-bizarre-ads-advantage-plus-2025-10
10•zdw•8m ago•0 comments

Next Five Asteroid Approaches

https://www.jpl.nasa.gov/asteroid-watch/next-five-approaches/
1•gnabgib•8m ago•0 comments

Show HN: Cmt is an AI powered commit generator

https://github.com/clifton/cmt
1•cliftonk•9m ago•0 comments

Nx "pulled the rug" on us, a potential solution and lessons learned

https://salvozappa.com/how-nx-pulled-the-rug-on-us.html
2•lladnar•9m ago•0 comments

Russian Ghost Ship Sank Smuggling Nuclear Reactor Parts Likely Bound for N Korea

https://united24media.com/latest-news/russian-ghost-ship-sank-while-smuggling-nuclear-reactor-par...
6•ck45•11m ago•1 comments

Walmart opts for 3D-printed buildings using technology from Alquist

https://unionrayo.com/en/walmart-3d-printed-building/
3•stevenjgarner•16m ago•1 comments

The "4-Hour Barrier": Forensic Audit of Sm_90 Logic Decay on Nvidia H100

1•Stan_Byriukov•16m ago•0 comments

Bubbly Moonshots: On stagflation, neolabs, how to handpick not-stupid categories

https://substack.com/home/post/p-182749582
2•theno0b•16m ago•0 comments

Ralph Nader Has a Pencil Eraser Problem. We Put 100 Kids on the Case

https://www.nytimes.com/wirecutter/reviews/ralph-nader-pencil-erasers/
1•nateb2022•17m ago•0 comments

Sun Times Visualization

https://udivankin.github.io/sunrise-sunset/
1•amadeuspagel•17m ago•0 comments

Profiling Python and Ruby Using eBPF

https://www.polarsignals.com/blog/posts/2023/10/04/profiling-python-and-ruby-with-ebpf
1•nickdevx•17m ago•0 comments

Binary Ninja is an interactive decompiler and binary analysis platform

https://binary.ninja/
1•nickdevx•19m ago•1 comments

Shipping at Inference-Speed

https://steipete.me/posts/2025/shipping-at-inference-speed
1•gmays•21m ago•0 comments

Show HN: Template Files with Nix Home Manager

https://ckardaris.github.io/blog/2025/12/29/template-files-with-nix-home-manager.html
1•ckardaris•25m ago•0 comments

Prompt Injection Defenses

https://github.com/tldrsec/prompt-injection-defenses
1•kidbomb•26m ago•0 comments

Russian enthusiasts planning DIY DDR5 memory amidst the worldwide shortage

https://www.tomshardware.com/pc-components/ddr5/russian-enthusiasts-are-building-their-own-ddr5-r...
2•akyuu•26m ago•0 comments

Show HN: I made a Macrodata Refinement simulator for bank transactions

https://www.wealthsync.co/severance
1•dimos851•26m ago•0 comments

Testosterone administration reduces lying in men (2012)

https://pubmed.ncbi.nlm.nih.gov/23071635/
1•rgrieselhuber•28m ago•1 comments

IUseLinux: Access iMessage from your Linux (or windows) computer

https://www.iuselinux.com/
2•generativist•28m ago•0 comments

AI model running on graphing calculator

https://github.com/Phineas1500/CalculatorLLM
1•phineas1500•29m ago•2 comments

When someone says they hate your product with a burning passion

https://www.getflack.com/p/responding-to-negative-feedback
10•jger15•29m ago•3 comments

D7VK – Vulkan Direct3D 7 translation layer – Run old games on Linux in Wine

https://github.com/WinterSnowfall/d7vk
1•peter_d_sherman•29m ago•1 comments

Show HN: Long Term Planner MCP

https://github.com/artpar/longterm-planner-mcp
2•artpar•31m ago•0 comments