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?

Ada Lovelace Answered the Big Questions About A.I

https://www.nytimes.com/2026/10/05/opinion/ada-lovelace-ai.html
1•uxhacker•1m ago•0 comments

WTF Is Going on with Marino Wijay [audio]

https://www.arresteddevops.com/wtf-is-going-on/
1•mooreds•2m ago•0 comments

High Diesel Prices Bankrupted 16 Trucking Companies in Just 30 Days

https://www.thedrive.com/news/high-diesel-prices-bankrupted-16-trucking-companies-in-just-30-days
1•speckx•2m ago•0 comments

Don't Throw Away Your Old Laptop – macOS Might Surprise You

https://www.youtube.com/watch?v=AQVd39nt_CY
1•cable2600•8m ago•0 comments

Googlebook

https://store.google.com/category/laptops?hl=en-US
2•runamuck•12m ago•1 comments

I got tired of asking "what do you mean?" on every bug report

https://twitter.com/tejashaveridev/status/2107251170725003713
1•TejasHaveri•17m ago•1 comments

Daegun v1.2.0 – Big Update

https://github.com/zztaeha/daegun/releases/tag/v1.2.0
1•silly-tae•18m ago•0 comments

The AI Buildout Has Turned into a Doom Loop

https://bird.makeup/users/gnoble79/statuses/2107068301004210338
1•doener•18m ago•0 comments

Wikipedia operator says OpenAI's 'rogue' bots may be linked to a May outage

https://www.theverge.com/news/1004929/wikipedia-openai-rogue-bots-wikimedia-foundation-outage
2•sbulaev•20m ago•0 comments

Fraudulent research is an accelerating problem

http://deevybee.blogspot.com/2026/08/acceleration-of-arms-race-between.html
1•t0mpr1c3•21m ago•0 comments

XCOR launches to trace outages in minutes. It still pages engineers

https://thenewstack.io/cortex-xcor-ai-observability/
2•geoffbp•24m ago•0 comments

AI Tutoring with Khanmigo in a Two-Year School Experiment

https://edworkingpapers.com/ai26-1551
7•bryan0•27m ago•1 comments

T – Reproducible Pipelines for Polyglot Data Science

https://tstats-project.org/
1•carnevalem•29m ago•0 comments

Show HN: Headline Arena – public forecasting records for AI agents

https://headlinearena.com
1•kopei•32m ago•0 comments

Show HN: Cluttersignal, a second opinion on any email or link you get

https://clutterstrike.com/
1•sourdoughy•32m ago•0 comments

A story about Magic (Jargon File)

https://users.cs.utah.edu/~elb/folklore/magic.html
2•voidnullvalue•33m ago•1 comments

Strategic Update, October 1, 2026: Center for Human Technology

https://www.humanetech.com/strategic_update_100126
1•rdhyee•43m ago•0 comments

Design Systems for AI Agents (Luke Wroblewski)

https://www.lukew.com/ff/2164/design-systems-for-ai-agents
1•bpierre•48m ago•1 comments

Show HN: Cold B2B email should be free (FlyHedwig)

https://flyhedwig.com
1•gabceboli•49m ago•4 comments

Samon: Designing a Zen Garden Raking Puzzle

https://gwern.net/doc/design/2026-10-03-gwern-samon.html
4•networked•52m ago•1 comments

Serena OS: Modern operating system design meets Amiga computers

https://github.com/dplanitzer/Serena
2•doener•52m ago•1 comments

Brain does not process information and it is not a computer Essays

https://aeon.co/essays/your-brain-does-not-process-information-and-it-is-not-a-computer
2•Anon84•53m ago•0 comments

Show HN: Open Twin, a modelica-based simulator for real-world physical systems

https://open-twin.netlify.app/w/d5e756e1-4b43-415b-a10c-bb83fb98fe55
1•tgirotto•53m ago•0 comments

Formally deriving programs from specifications (Bird-Meertens) using Lean 4

https://satnam6502.github.io/bird-meertens/
1•matt_d•56m ago•0 comments

"Rising cost of memory," Microsoft explains why Windows 11 will use less RAM

https://www.windowslatest.com/2026/10/04/rising-cost-of-memory-microsoft-explains-why-windows-11-...
5•TMWNN•58m ago•1 comments

The Output-Space Hypothesis:Enumerative Equivalence Checking for Tensor Programs

https://arxiv.org/abs/2609.19611
1•matt_d•59m ago•0 comments

Ask HN: Are there AI models for generating sounds based on a text and reference?

1•onemiketwelve•1h ago•0 comments

LLM SEO tools in 2026: what each one tracks

https://picked.so/blog/llm-seo-tools
1•shdalex•1h ago•0 comments

Schneider Electric to buy industrial software group PTC for $23.7B

https://www.ft.com/content/2084f349-0829-4130-a5e6-b98929a6e633
2•teleforce•1h ago•0 comments

You're Leaving Compute on the Table

https://nishantjosh.dev/blogs/youre-leaving-compute-on-the-table/
1•ibobev•1h ago•0 comments