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•9mo 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•9mo 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: Claude Code Open – AI coding platform with Web IDE and 37 tools

https://github.com/kill136/claude-code-open
1•694623326•2m ago•0 comments

Yunet Code Template for $1.00

https://buy.stripe.com/cNi4gyfzIbn06llaTz3ZK01
1•popcornisgold•3m ago•0 comments

Show HN: Librarium – fan out research queries to many search/AI APIs in parallel

https://github.com/jkudish/librarium
1•joeykudish•3m ago•1 comments

V&A acquires early YouTube webpage

https://www.vam.ac.uk/articles/acquiring-an-early-youtube-watch-page-and-its-first-ever-video
1•beel•4m ago•0 comments

Pantalk – Open-source unified messaging gateway for AI agents

https://pantalk.dev/
1•_pdp_•4m ago•1 comments

Hetzner's Statement on Price Adjustment

https://www.hetzner.com/pressroom/statement-price-adjustment/
2•soruly•4m ago•1 comments

Why Vibe Coding Feels So Addictive

https://twitter.com/EmmettMaher/status/2013406291314491792
1•tosh•5m ago•0 comments

Show HN: I built Quikspace to help startup save time on tiny tasks

https://www.quikspace.io/
1•vinzdg•6m ago•0 comments

'A.I. Literacy' Is Trending in Schools. Here's Why

https://www.nytimes.com/2026/02/23/business/ai-literacy-faq.html
1•furcyd•7m ago•0 comments

Hetzner (European hosting provider) to increase prices by up to 38%

https://old.reddit.com/r/BuyFromEU/comments/1rce0lf/hetzner_european_hosting_provider_to_increase/
2•doener•9m ago•0 comments

Show HN: A small red square AI that lives in a grid and thinks

https://eleandi.com
1•rohitsuppal23•11m ago•0 comments

Why Your Team Is Helpless

https://yanivpreiss.com/2026/02/22/why-your-team-is-helpless/
1•PretzelFisch•13m ago•0 comments

HAWC: Hypersonic Air-Breathing Weapon Concept

https://www.darpa.mil/research/programs/hypersonic-air-breathing-weapon-concept
1•keepamovin•14m ago•0 comments

Refugee History Timeline

http://refugeehistory.org/timeline-immigration
1•robtherobber•14m ago•0 comments

Show HN: Air Blackbox – Open-source audit trail and kill switch for AI agents

https://airblackbox.github.io/air-platform/hosted-demo.html
1•shotwellj•15m ago•0 comments

Is Postgres Enough in 2026?

https://xata.io/blog/is-postgres-really-enough-in-2026
2•ClaudiuDasca•16m ago•1 comments

Show HN: URL Health Checker API – SSL, headers, perf in one call

https://url-health.chitacloud.dev/
1•AutoPilotAI•16m ago•1 comments

Nim 2.2.8

https://nim-lang.org//blog/2026/02/23/nim-228.html
1•xz18r•18m ago•0 comments

Forgejo, AGit, and Pull Request Templates

https://carlo.zancanaro.id.au/posts/forgejo-agit-and-pull-request-templates.html
1•todsacerdoti•22m ago•0 comments

Hetzner increases prices from April 1

https://www.heise.de/en/news/Hetzner-increases-prices-from-April-1-11185981.html
4•bytebln•23m ago•1 comments

Don't host email yourself – your reminder in 2026

https://www.coinerella.com/dont-host-email-yourself-your-reminder-in-2026/
3•willy__•24m ago•0 comments

Ladybird Browser adopts Rust

https://ladybird.org/posts/adopting-rust/
74•adius•24m ago•8 comments

I am a 15-year-old girl. Social media is full of vile misogyny

https://www.theguardian.com/commentisfree/2026/feb/23/15-year-old-girl-misogyny-social-media-onli...
3•smallpipe•25m ago•1 comments

Show HN: WinClaw – An AI agent for Windows that anyone can use

https://docs.winclaw.cc/en/blog/windows-use-winclaw
1•allwefantasy•25m ago•0 comments

Show HN: GitShow – Replace github.com with gitshow.dev in any profile URL

1•ofershap•26m ago•0 comments

Demystifying Debuggers, Part 5: Instruction-Level Stepping and Breakpoints

https://www.dgtlgrove.com/p/demystifying-debuggers-part-5-instruction
1•ibobev•27m ago•0 comments

Audio in Karl2D: Software mixing, OS APIs and general design

https://zylinski.se/posts/audio-in-karl2d-software-mixing/
1•ibobev•28m ago•0 comments

How fast do browsers correct UTF-16 strings?

https://lemire.me/blog/2026/02/21/how-fast-do-browsers-correct-utf-16-strings/
1•ibobev•28m ago•0 comments

Working with A.I. is working with human stories

https://rolandnsharp.github.io/posts/working-with-ai-is-working-with-human-stories/
1•rolandnsharp•30m ago•0 comments

Show HN: In Browser, Serverless Quake 3 Arena

https://quake.wolcott.cc
1•jwally•30m ago•1 comments