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?

Facelift: AI Website Customizer and Visual CSS Editor

https://getfacelift.app/
1•antrikshmisri•1m ago•0 comments

Nvidia DLSS 5 Neural Rendering (NR) Now Works on AMD Radeon GPUs

https://overclock3d.net/news/software/nvidia-dlss-5-neural-rendering-nr-now-works-on-amd-radeon-g...
1•_____k•3m ago•1 comments

Which programming "best practice" you think is wrong?

https://textlog.cc/post/3226?hn
1•stagas•4m ago•0 comments

Ask HN: How did you meet your cofounder?

1•pawlatwork•4m ago•0 comments

Show HN: Find the cheapest GPU to run your model

https://www.gpufind.cloud/
1•the_app_guy_1•5m ago•0 comments

The Norwegian gas plant that could safeguard Europe from Trump

https://www.politico.com/news/2026/09/05/norway-gas-plant-europe-climate-trump-01064538
1•Alien1Being•6m ago•0 comments

Show HN: Stratosync – on-demand cloud sync for Linux with FUSE and rclone (BETA)

https://github.com/dmcbane/stratosync
1•linbaato•7m ago•0 comments

Tachyon Mail – taking over where snappymail left

https://tachyonmail.app
1•kimusan•7m ago•1 comments

Pov: You're an AI agent recruited for the swarm

https://twitter.com/artficialisabel/status/2095678312773554533
1•fbrusch•12m ago•0 comments

Time lords prepare to kick leap seconds into the next millennium

https://www.theregister.com/offbeat/2026/09/06/time-lords-prepare-to-kick-leap-seconds-into-the-n...
1•defrost•14m ago•0 comments

Better living through respecting chemistry

https://joodaloop.com/riffs/better-chemistry/
1•semanticz0•14m ago•0 comments

GLM-5.2 RL weight transfer in 4 seconds using NIXL and ModelExpress

https://www.primeintellect.ai/blog/nixl-modelexpress-weight-transfer
1•kokonut93•16m ago•0 comments

The one source of truth for gamers

https://videogamescritic.com
2•claude-ai•17m ago•0 comments

Show HN: Skool Video Downloader

https://chromewebstore.google.com/detail/skool-video-downloader/pedaaflmbpdbjjfndilgphbhhjbcfmfc
1•qwikhost•19m ago•0 comments

Saudi Arabia bets on driverless trucks

https://en.majalla.com/node/332904/business-economy/bold-road-saudi-arabia-bets-driverless-trucks
1•Alien1Being•23m ago•0 comments

"We Have to Assume That the Internet Will Go Offline in the Next Few Years"

https://www.trendingtopics.eu/emad-mostaque-ai-internet-outlook-english/
1•gumby•30m ago•0 comments

WordStar 4.0 – the real 1987 word processor, in the browser

https://nampara-ai.github.io/wordstar/
1•Tomte•31m ago•0 comments

Project Zenith: The ready-to-code Windows experience on developer-class devices

https://blogs.windows.com/windowsdeveloper/2026/09/04/announcing-project-zenith-the-ready-to-code...
1•poisonborz•33m ago•0 comments

How Marine Rifle Squads Plan to Fight Future Wars Dominated by Drones

https://www.twz.com/sea/how-marine-rifle-squads-plan-to-fight-future-wars-dominated-by-drones
1•cisc•43m ago•0 comments

Low Interest Rates Ruined the Economy

https://www.oftwominds.com/blogaug26/powder-key-economy8-26.html
1•BerislavLopac•46m ago•0 comments

Bespoke: A Programming Language for People Who Say Please

https://blog.hofstede.it/bespoke-a-programming-language-for-people-who-say-please/
1•birdculture•47m ago•0 comments

Isthmus – a small Go trust-kernel for NanoClaw

https://github.com/prathish-ks/isthmus
1•sriyapaka•49m ago•0 comments

AI Chip Regulation Is Not a Dystopian Surveillance State

https://www.astralcodexten.com/p/ai-chip-regulation-is-not-a-dystopian
1•reasonableklout•52m ago•0 comments

How to evaluate LLMs before production

https://github.blog/ai-and-ml/llms/how-to-evaluate-llms-before-production/
1•officekamiya•54m ago•0 comments

I gave my AI agent a sleep cycle – it dreams about its errors and fixes them

https://github.com/openamer/openamer
1•openamer•55m ago•0 comments

Archive.org in need of large hard drives

https://mastodon.archive.org/@textfiles/117220856033120449
2•happosai•56m ago•0 comments

Show HN: Kaden – Linux Terminal where Ctrl+C copies

https://github.com/glitcher255/Kaden-Terminal
1•Glitcher255•1h ago•0 comments

Nimvarya – Let AI coding agents control Chrome without stealing focus

https://github.com/Basiliskin/nimvarya
1•dimitrykatz•1h ago•0 comments

Derick Nwasor, Nigeria – Just Add Water – Quantum Regenerative Fuelcell

https://africaprize.raeng.org.uk/2026-cohort/derick-nwasor/
1•thunderbong•1h ago•0 comments

The SimCity Planning Commission Handbook (2024)

https://www.thomas-huehn.com/simcity/
1•Tomte•1h ago•0 comments