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?

Hegseth demands Anthropic to allow unrestricted military use of Claude

https://www.pbs.org/newshour/world/ap-report-hegseth-warns-anthropic-to-let-the-military-use-comp...
1•anxoo•27s ago•0 comments

Show HN: Crustdata (YC F24) – Web Search API for Token-Efficient AI Agents

https://crustdata.com
1•loondri•1m ago•0 comments

Claude Scholar:Claude Code/OpenCode configuration for academic research

https://github.com/Galaxy-Dawn/claude-scholar
1•Dawngamma•2m ago•0 comments

CHM Recovers Original Unix C Source Code from Magnetic Tape [video]

https://www.youtube.com/watch?v=-xlq_MPWNKk
1•tangelogica•12m ago•0 comments

I made a little quiz to test my sense of business scale

https://sense-of-scale.vercel.app/
2•whittle_away•13m ago•0 comments

Discord Delays Global Age Assurance

https://discord.com/blog/getting-global-age-assurance-right-what-we-got-wrong-and-whats-changing
2•jameslars•19m ago•1 comments

Show HN: StreamHouse – S3-native Kafka alternative written in Rust

https://github.com/gbram1/streamhouse
2•gbram•22m ago•0 comments

Thinking Like Transformer

https://srush.github.io/raspy/
2•vinhnx•27m ago•0 comments

Australian man jailed for selling US cyber secrets to Russian broker

https://www.abc.net.au/news/2026-02-25/australian-sentenced-7-years-jail-selling-us-trade-secrets...
1•defrost•29m ago•0 comments

Is Embedded Rust Ready for Primetime?

https://shawnhymel.com/3197/is-embedded-rust-ready-for-primetime/
1•sohkamyung•29m ago•0 comments

Claude Code Front End Design Toolkit

https://github.com/wilwaldon/Claude-Code-Frontend-Design-Toolkit
1•stagezerowil•30m ago•0 comments

Tests Are the New Moat

https://saewitz.com/tests-are-the-new-moat
1•linolevan•30m ago•0 comments

Show HN: Measuring brand share in AI answers – a Y Combinator case study

https://www.geovector.ai/report/yc
4•roman10•35m ago•2 comments

Show HN: Courtyard – Open-source macOS app for local MLX fine-tuning Text

https://github.com/Mcourtyard/m-courtyard
1•tuwenbo0120•38m ago•0 comments

Anthropic faces Friday deadline in Defense AI clash with Hegseth

https://www.cnbc.com/2026/02/24/anthropic-ai-hegseth-spying-defense.html
3•gslin•44m ago•0 comments

Looking Forward to PGConf India in Bengaluru in March

https://techcommunity.microsoft.com/blog/adforpostgresql/microsoft-at-pgconf-india-2026/4496182
1•clairegiordano•47m ago•0 comments

Canva expands professional creative ecosystem with Cavalry

https://www.canva.com/newsroom/news/cavalry/
1•flashblaze•48m ago•0 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
1•jsomers•52m ago•0 comments

Intel Strikes Deal with a Chip Startup Its CEO Invested In

https://www.nytimes.com/2026/02/24/technology/intel-sambanova-ceo-lip-bu-tan.html
3•osnium123•54m ago•0 comments

MBC v0.2.0 – AI agent orchestration for Laravel (security hardening)

https://github.com/etazza2025/laravel-mbc
1•undergracelabs•56m ago•1 comments

Learning from Structure: Discord's Entity-Relationship Embeddings

https://discord.com/blog/learning-from-structure-discords-entity-relationship-embeddings
1•throwaway314155•59m ago•0 comments

An Elephant Is Blind Without the Hairs on Its Trunk

https://www.nytimes.com/2026/02/12/science/elephant-whiskers.html
1•bookofjoe•1h ago•1 comments

RFC Explorer – Explore over 9000 RFCs

https://rfcexplorer.net/
1•xillb•1h ago•0 comments

We Need to Stop Asking "Is This Better Than That"

https://doppelgangerdev.com/docs/software-isn-t-a-competition-it-s-a-map-of-our-frustrations
1•asernasr•1h ago•1 comments

Show HN: Built a news aggregator that collect AI news around the world

https://vvsearch.com/workspace/news-terminal
1•raugen•1h ago•0 comments

Will artificial snow save the ski industry in the long run, or curse it?

https://theconversation.com/will-artificial-snow-save-the-ski-industry-in-the-long-run-or-curse-i...
1•PaulHoule•1h ago•0 comments

Finding 100 Kernel Bugs Using Agent Swarms

https://ydinkin.substack.com/p/200-kernel-bugs-in-30-days
1•itkeman•1h ago•0 comments

Show HN: I made a 4D version of DOOM

https://hyperhell.itch.io/hyperhell
1•chronolitus•1h ago•0 comments

Tim Cook Warned by CIA That China Could Move on Taiwan by 2027

https://www.macrumors.com/2026/02/24/tim-cook-warned-by-cia-china-taiwan-2027/
5•mgh2•1h ago•1 comments

Show HN: Declare AI – open standard for AI content disclosure

https://declare-ai.github.io/declare-ai/declare-ai-devteam.html
2•BetterToBest•1h ago•2 comments