frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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: Agentlytics – cookieless analytics your AI agent can read and act on

https://measuremy.site
1•developeron29•13s ago•0 comments

Writing Without Artificial Intelligence [pdf]

https://provost.uchicago.edu/sites/default/files/2026-09/WritingWithoutAIPrinciplesandRecommendat...
1•clcaev•3m ago•0 comments

Let's make FOSS printer drivers with your monetary support

https://printserver.ink/funding.html
1•ValdikSS•3m ago•0 comments

Terminal.Gui – Cross Platform Terminal UI Toolkit for .NET

https://tui-cs.github.io/Terminal.Gui/
1•eustoria•4m ago•0 comments

OpenAI safety leader David Robinson resigns

https://www.businessinsider.com/safety-leader-david-robinson-resigns-from-openai-2026-10
2•pcvarmint•5m ago•0 comments

Whisper Web: Transcribe speech directly in the browser

https://whisper-web.mesu.re/
1•eustoria•6m ago•0 comments

The Journal of Writing and Artificial Intelligence

https://www.jwai.org
1•eustoria•6m ago•0 comments

Claude Ultracode is super intelligence

https://twitter.com/atmoio/status/2106089460316397857
1•baxtr•7m ago•0 comments

UAE threatens Burnham over Man City: We'll pull billions out of UK

https://www.telegraph.co.uk/news/2026/10/02/uae-threatens-burnham-over-man-city-pull-billions-out...
1•ksec•11m ago•0 comments

CLR: Checker of Lifetimes and other Refinement types for Zig

https://github.com/ityonemo/clr
1•ksec•13m ago•0 comments

KVM 0day

https://twitter.com/paulosyibelo/status/2106378929158135903
2•defly•14m ago•0 comments

Bewitched sleep: Russians' views on Ukraine and the world

https://ecfr.eu/publication/bewitched-sleep-russians-views-on-ukraine-and-the-world/
1•cosmicgadget•15m ago•0 comments

TSMC eyes a multibillion-dollar Texas campus for more AI chips

https://thenextweb.com/news/tsmc-texas-fabs-europe-gap
2•ksec•16m ago•0 comments

Show HN: Factorio but with Unreliable Components

https://think-twice.me/public/rely/
3•zug_zug•23m ago•0 comments

Memory safety for Postgres extensions in C/C++

https://clickhouse.com/blog/memory-safety-postgres-extensions-c-cpp
1•saisrirampur•26m ago•0 comments

Sean Parker is rebuilding Stability AI around music

https://techcrunch.com/2026/10/02/sean-parker-is-rebuilding-stability-ai-around-music/
1•Brajeshwar•27m ago•0 comments

Nathan Fielder's Elizabeth Holmes doc is a modern masterpiece of deceit

https://www.theguardian.com/film/2026/oct/01/you-can-see-everything-movie-review
4•obscurette•27m ago•0 comments

Mososi (intent based social networking site)

https://mososi.onrender.com/
1•RedsonNgwira•29m ago•1 comments

Every Lighthouse of the World, Mapped

https://mapped.earth/lighthouses/world
1•bookofjoe•29m ago•1 comments

Show HN: Use Zoxide to change Nemo file manager location

https://gitlab.com/DPDmancul/nemo-zoxide
1•DPDmancul•30m ago•0 comments

Stackoverflow and other network sites down

https://stackoverflow.com/
2•sydney6•30m ago•0 comments

Stackoverflow Is Down

1•b112•31m ago•0 comments

Jabhook – Boxing Training (Computer Vision, 3D Biomechanics, Local LLM)

https://jabhook.ai/
1•Morgoth421•32m ago•0 comments

Flock Cameras Lead Police to Identify Wrong Car in Road Rage Case

https://www.jalopnik.com/2274946/flock-cameras-incorrect-identify-car-road-rage-case-armed-police...
2•cf100clunk•33m ago•0 comments

Show HN: Introudcing our latest frontier model

https://yuv-glitch.github.io/elgato/
2•flipping_beacon•36m ago•0 comments

The Social Status Game

https://pmz1.substack.com/p/the-social-status-game
1•gieksosz•37m ago•0 comments

Highlights of Calculus – Gilbert Strang (2010)

https://ocw.mit.edu/courses/res-18-005-highlights-of-calculus-spring-2010/
1•the-mitr•38m ago•0 comments

Open 10-player CS:GO dataset for multiplayer world models

https://vor.tech/
1•chickenhun•40m ago•0 comments

FTL: A new operating system for clouds

https://ftl-os.org/
7•romac•40m ago•1 comments

Show HN: OpenXW, a modern enhanced port of Star Wars: X-Wing

https://github.com/elyosh/OpenXW
1•elyosh•42m ago•0 comments