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

Full Schema Hierarchy

https://schema.org/docs/full.html
1•vinhnx•1m ago•0 comments

Meta to Create New Applied AI Engineering Organization

https://www.wsj.com/tech/ai/meta-to-create-new-applied-ai-engineering-organization-in-reality-lab...
1•RijilV•4m ago•0 comments

Open Source Day (April 24, Italy)

https://osday.dev
1•escapeteam•5m ago•0 comments

Anthropic Made Pitch in Drone Swarm Contest During Pentagon Feud

https://www.bloomberg.com/news/articles/2026-03-02/anthropic-made-pitch-in-drone-swarm-contest-du...
1•cdrnsf•6m ago•0 comments

My take on vibe coding for PMs

https://www.ddmckinnon.com/2026/02/11/my-%f0%9f%8c%b6-take-on-vibe-coding-for-pms/
1•dmckinno•6m ago•0 comments

How the Navy Spent Billions on the "Little Crappy Ship" (2023)

https://www.propublica.org/article/how-navy-spent-billions-littoral-combat-ship
1•mxfh•6m ago•0 comments

What Is the MacBook Neo?

https://www.macrumors.com/2026/03/03/apple-documents-macbook-neo-features/
1•TutleCpt•8m ago•0 comments

Rise of the Writer

https://schwadlabs.io/blog/rise-of-the-writer
1•schwad•9m ago•0 comments

Lenovo's New ThinkPads Score 10/10 for Repairability

https://www.ifixit.com/News/115827/new-thinkpads-score-perfect-10-repairability
2•wrxd•10m ago•0 comments

Designing Secure Software

https://designingsecuresoftware.com/text/ch0-preface/
1•transpute•11m ago•0 comments

Show HN: Git-hunk – Stage hunks by hash, no "-p" required

https://git-hunk.paulie.app/
1•shhac•12m ago•0 comments

Checkers and Hex

https://www.glassgallows.com/p/checkers-and-hex
1•mortarjjjjj•12m ago•0 comments

Show HN: Autonomous Agent That Uses Your Tools Without Complex Setups

https://heycody.ink
1•daolm•13m ago•0 comments

Improving skill-creator: Test, measure, and refine Agent Skills

https://claude.com/blog/improving-skill-creator-test-measure-and-refine-agent-skillst
1•adocomplete•14m ago•0 comments

NTSB: Automated Driving Vehicle Passed School Bus Loading Student Passengers

https://www.ntsb.gov:443/investigations/Pages/HWY26FH007.aspx
1•Animats•14m ago•1 comments

Buddhist concept of suffering explained with AI generated video and music (HQ)

https://www.youtube.com/watch?v=Vyq0kbjFjdA
1•jahala•14m ago•1 comments

'Silicon Valley's only contrarian': Amjad Masad on the cost of dissent in tech

https://sfstandard.com/pacific-standard-time/2026/02/27/pst-amjad-masad-silicon-valley-contrarian/
2•abdelhousni•15m ago•1 comments

File extensions in bash scripts – shell parameter expansion

https://www.johndcook.com/blog/2026/02/28/file-extensions-bash/
1•ibobev•16m ago•0 comments

Show HN: Spidra – AI web scraper that adapts to any website

https://spidra.io
1•joelolawanle•16m ago•0 comments

I lost my ability to learn anything new because of AI and I need your opinions

2•dokdev•16m ago•5 comments

Shell Variable

https://www.johndcook.com/blog/2026/03/01/tilde-dash/
2•ibobev•16m ago•0 comments

Differential Equation with a Small Delay

https://www.johndcook.com/blog/2026/03/02/small-delay/
1•ibobev•17m ago•0 comments

Privacy Protections Shouldn't Depend on the Decisions of a Few Powerful People

https://www.eff.org/deeplinks/2026/03/anthropic-dod-conflict-privacy-protections-shouldnt-depend-...
1•hn_acker•19m ago•1 comments

The Product Engineer

https://nmm.ee/product-engineer
1•askonomm•20m ago•0 comments

Supreme Court saves artists from AI

https://pluralistic.net/2026/03/03/its-a-trap-2/
3•hn_acker•22m ago•0 comments

Background Coding Agents: Predictable Results Through Strong Feedback Loops

https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3
1•chw9e•24m ago•0 comments

Claude Is a Virtual Machine / Runtime Engine / JIT

https://jperla.com/blog/claude-is-a-jit
1•ljlolel•25m ago•0 comments

How Well Does Agent Development Reflect Real-World Work?

https://arxiv.org/abs/2603.01203
1•salkahfi•26m ago•0 comments

130k Lines of Formal Topology: Simple and Cheap Autoformalization for Everyone?

https://arxiv.org/abs/2601.03298
1•PaulHoule•27m ago•0 comments

Motorola's GrapheneOS phones: They're a privacy and open source win

https://www.zdnet.com/article/motorola-to-preinstall-grapheneos-on-2027-phones/
2•CrankyBear•28m ago•0 comments