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

Show HN: Overflow – compact your context window before it overflows

https://playoverflow.com/
1•jfu213•16s ago•0 comments

Skeg: A vector database that gives the RAM back to your model

https://github.com/skegdb/skeg
1•lupodevelop•3m ago•0 comments

Alexandr Wang's bid to revive Meta's AI edge

https://www.ft.com/content/d26faf9d-6ef0-4480-ab80-bac6a36fe173
2•merksittich•8m ago•0 comments

Show HN: OpenSOP, We got tired of agents lying to us, so we built them a harness

https://opensop.ai/
3•carlosamg•8m ago•1 comments

Akaganite, a managed Rust toolchain for licensed console developers (Xbox, PS 5)

https://akaganite.com
2•pjmlp•9m ago•0 comments

Project Sunrise Nears Reality as Qantas' Airbus A350-1000ULR Makes Maiden Flight

https://simpleflying.com/project-sunrise-qantas-a350-1000ulr-maiden-flight/
2•rbanffy•10m ago•0 comments

A chart detailing countries' attitudes toward international cuisines

https://old.reddit.com/r/Infographics/comments/1m2qpse/a_chart_detailing_countries_attitudes_toward/
3•surprisetalk•10m ago•0 comments

Which sparkling water is the best?

https://www.maximevidal.com/sparkling-water
1•vmaxmc2•11m ago•0 comments

32GB of DDR5 now costs $375 – AI shortage continues to squeeze PC building

https://www.tomshardware.com/pc-components/ddr5/32gb-of-ddr5-now-costs-usd375-minimum-ai-shortage...
3•papersail•12m ago•0 comments

Session Vault – Stop Chrome from Discarding Heavy Claude and AI Tabs

https://chromewebstore.google.com/detail/session-vault/mnjlmmekjefpcjopgdbadafkdjibbhpa
1•Flowent•12m ago•0 comments

Show HN: Threshold Concepts in CS – ideas that permanently change how you think

https://github.com/nikitph/awesome-threshold-concepts
1•loaderchips•13m ago•0 comments

Meta workers can opt out of being tracked at work up to 30 min

https://www.bbc.com/news/articles/c93x0k194yno
3•reconnecting•13m ago•0 comments

India's High-Stakes Push for Sovereign AI Faces Reality Check

https://www.bloomberg.com/news/features/2026-06-02/modi-wants-india-to-join-japan-uk-in-ai-superp...
1•jmsflknr•13m ago•0 comments

New York to require 3D printers to be equipped with filter software

https://www.governor.ny.gov/news/keeping-new-yorkers-safe-governor-hochul-signs-legislation-stren...
1•15155•15m ago•0 comments

AI Bots Cite Dentists More Than Fortune 500s. The Data Surprised Us

https://engagemii.com/blog/dentists-vs-fortune-500-ai-citations
2•Greg_engagemii•16m ago•0 comments

Show HN: Python PCAP Analyzer

https://github.com/Raduurjan/Python_PCAP_analyzer
1•RaduUrj•16m ago•0 comments

AI licensing coalition SPUR in expansion

https://pressgazette.co.uk/news/ai-licensing-coalition-spur-in-huge-expansion/
1•thm•17m ago•0 comments

Basic Soldering Lesson 1 – "Solder and Flux" [video]

https://www.youtube.com/watch?v=vIT4ra6Mo0s
2•__natty__•18m ago•0 comments

Europe's First Apple Developer Center to Open in Berlin

https://www.apple.com/uk/newsroom/2026/06/europes-first-apple-developer-center-to-open-in-berlin/
1•thm•18m ago•0 comments

ChatGPT Isn't Just Changing How We Work. It's Harming How We Think

https://thewalrus.ca/chatgpt-isnt-just-changing-how-we-work-its-harming-how-we-think/
1•debo_•19m ago•0 comments

Google's Top DMCA Sender Plateaus at 70M Takedowns per Week

https://torrentfreak.com/googles-top-dmca-sender-plateaus-at-70-million-takedowns-per-week/
2•isaacfrond•20m ago•0 comments

API/MCP to check if a physical product is legal to sell in 103 countries

https://legaldata-public.cleolabs.co/products
1•naomiehl•20m ago•0 comments

EU plots long game against US digital supremacy

https://www.politico.eu/article/eu-plots-long-game-against-us-digital-supremacy/
3•thm•20m ago•0 comments

German startup advancing compressor-free electrocaloric heat pump technology

https://www.pv-magazine.com/2026/06/02/german-startup-advancing-compressor-free-electrocaloric-he...
2•rustoo•20m ago•0 comments

Are Electrons Real?

https://physics.aps.org/articles/v19/70
1•sohkamyung•21m ago•0 comments

Amazon's Ring sued over facial recognition feature

https://www.reuters.com/legal/government/amazons-ring-sued-over-facial-recognition-feature-latest...
2•1vuio0pswjnm7•23m ago•1 comments

Show HN: Self tuning chat exposing it's semantic and agentic cache

https://chat.betterdb.com
3•kivanowbetterdb•24m ago•0 comments

I aint gonna work on Maggie's Datacenter no more [video]

https://www.youtube.com/watch?v=FbUHfsJ44x8
2•gdiamos•24m ago•0 comments

Why 374,000 Californians have dropped their Covered CA insurance

https://ktla.com/news/california/californians-drop-covered-california-health-insurance/
1•Bender•24m ago•0 comments

Show HN: Browser-based image converters (WASM) and a URL image scanner

https://imagedimensions.com
1•Bishop81•25m ago•0 comments