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?

GPT-5.6 vs. Claude Fable 5 for Physical AI, which performs best?

https://juliahub.com/blog/frontier-models-physical-ai-evaluation
1•mbauman•1m ago•0 comments

NoWreck v0.4.0 – – Deterministic AI Verifier

https://github.com/AstralXVoid/NoWreck
1•AstralXVoid•1m ago•0 comments

Show HN: WFY24 A performance weather widget with 2km hyper-local forecasting

https://www.wfy24.com/en/widgets
1•weatherfun•1m ago•0 comments

Google shuts down Nobel Prize winning AlphaFold

https://www.engadget.com/2225849/google-shuts-down-alphafold/
1•NordStreamYacht•2m ago•0 comments

Why do OpenAI's GPT-2 weights beat mine?

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-1-intro
1•gpjt•2m ago•0 comments

Substackers Say New AI Detection Tool Is a 'Witch Hunt'

https://www.404media.co/substackers-say-new-ai-detection-tool-is-a-witch-hunt/
1•Brajeshwar•3m ago•1 comments

Doing Okay-ish with AI at the AI-proof competition

https://blog.greg.technology/2026/07/26/doing-okayish-with-ai-at-the-ai-proof-competition.html
1•evakhoury•3m ago•0 comments

I'm Going to Be Silent

https://departure.blog/im-going-to-be-silent/
1•speckx•3m ago•0 comments

A Plea for Lean Software (Niklaus Wirth)

https://liam-on-linux.dreamwidth.org/88032.html
1•tosh•4m ago•0 comments

Ask HN: What percentage of your tech is out of curiosity not requirements

1•sahil423•5m ago•0 comments

Stripe Just Wants a Number

https://blog.exe.dev/billable-facts
2•cbrewster•6m ago•0 comments

Trojan models can be surprisingly easy to make

https://aisle.com/blog/the-model-that-fixes-your-code-might-hack-the-linux-kernel
1•bluepat•7m ago•0 comments

Loop Engineering Is a Pattern, Not a Feature

https://iii.dev/blog/loop-engineering-is-a-pattern-not-a-feature/
1•appplemac•8m ago•0 comments

My Best Mental Models I Use to Work with AI

https://metedata.substack.com/p/015-the-mental-models-i-use-to-work
1•young_mete•9m ago•0 comments

Moonshot AI Raises $3.5B at $35B Valuation

https://www.bloomberg.com/news/articles/2026-07-29/china-s-moonshot-ai-passes-funding-goal-to-hit...
1•mfiguiere•9m ago•0 comments

Show HN: Qwen Scribe – local transcription and dictation for Apple Silicon

https://github.com/VladUZH/qwen-scribe
1•sidclaw•10m ago•0 comments

Show HN: Vostorq – I built the anti-Slack after working at a Slack-first company

https://www.vostorq.com/
1•Mike-Kelner•11m ago•0 comments

Controllable Generative Modeling in Minecraft by Training on Billions of Cubes

https://pub.sakana.ai/dream-cubed/
2•vicgalle_•12m ago•1 comments

A.I. Companies Are Recruiting Electricians and Carpenters by the Thousands

https://www.nytimes.com/2026/07/29/business/economy/data-center-electricians-training.html
4•thm•13m ago•0 comments

Show HN: find Your misplaced iPad

https://github.com/matthiasgoergens/find-ipad
3•eru•14m ago•0 comments

SmarterEveryday: Problem with Capitalism (grill scrubber) [video]

https://www.youtube.com/watch?v=vS6HEes8daw
1•dzonga•14m ago•0 comments

Show HN: A free curl API for IP data (we scan the IPv4 space in <24h)

https://worldip.io/news/keyless-ip-api-no-key-required
1•tuxxin•14m ago•0 comments

Show HN: Sightmap – Runtime context for agents using your web app

https://github.com/sightmap/sightmap
2•jurassix•14m ago•0 comments

Documentation and analysis of the Linux random number generator

https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/Publications/Studies/LinuxRNG/LinuxRNG_EN_V5_...
2•fanf2•15m ago•0 comments

Show HN: [OSS, local] Spatial Board for all your agents

https://github.com/mikky-a/agentboard
1•mikky-a•15m ago•2 comments

The data center fight is going global

https://wagingnonviolence.org/2026/07/the-data-center-fight-is-going-global/
1•theanonymousone•15m ago•0 comments

Escaping the LLM Coding Rat Race

https://aaronstannard.com/escaping-ai-coding-ratrace/
3•Aaronontheweb•16m ago•0 comments

OpenAI's rogue models roamed the internet for 4 days and staged a second attack

https://twitter.com/politico/status/2082269586632937717
1•theanonymousone•16m ago•0 comments

Digitally Entertained with Zero Money

https://folkmoss.bearblog.dev/digital-entertainment-with-zero-money/
1•surprisetalk•16m ago•0 comments

Updating Darwin: Returning to an older theory to explain anomalies in evolution

https://theconversation.com/updating-darwin-biologists-are-returning-to-an-older-theory-to-explai...
2•theanonymousone•16m ago•0 comments