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?

Manufacturing and design aspects of BYD powertrain commented during disassembly [video]

https://www.youtube.com/watch?v=4LfDuyqmsts
1•2DcAf•33s ago•0 comments

Boomurl.com

https://boomurl.com
1•dorongrinstein•1m ago•1 comments

Building a Gifford-McMahon Cryocooler with 3D-Printed Parts [video]

https://www.youtube.com/watch?v=Jj7Q7OqaW4A
1•skibz•3m ago•0 comments

Desalinated ocean water gets one step closer to helping Arizona with drought

https://www.kjzz.org/politics/2026-06-04/desalinated-ocean-water-gets-one-step-closer-to-helping-...
1•bilsbie•4m ago•0 comments

Researchers Uncover Espionage in Mobile Networks

https://citizenlab.ca/researchers-uncover-espionage-in-mobile-networks/
1•jruohonen•6m ago•0 comments

Two notes on notation (Knuth, 1992)

https://arxiv.org/abs/math/9205211
1•tosh•7m ago•0 comments

SpaceX Perpetual Futures on Hyperliquid

https://hyperdash.com/asset/spcx-hyperliquid
1•davedx•8m ago•1 comments

CodePal: Snap Built an AI Code Reviewer for the Age of AI-Written Code

https://eng.snap.com/codepal
1•Kaedon•8m ago•0 comments

I scraped 743 large employers' careers pages to find their ATS

https://github.com/Kayvan-Zahiri/state-of-ats-2026
1•kzahiri•13m ago•1 comments

GraphRAG – a knowledge graph LLMs can traverse and write back to

https://github.com/mmkumar5401/GraphRag
2•mmkumar•14m ago•0 comments

A "Computer Science-Fiction" novel, Blue Screen, about the AI end of the world

https://www.amazon.com/Blue-Screen-Peter-Gustafson-Defragmented/dp/B084QL16YT
2•WWIII_Historian•16m ago•0 comments

Floor, Ceiling, Bracket (2021)

https://www.johndcook.com/blog/2021/04/15/floor-ceiling-bracket/
1•tosh•17m ago•0 comments

Show HN: Convert a lunar birthday into 60 years of calendar reminders

https://ajin.im/is/building/lunaronce/
1•poppypetalmask•19m ago•0 comments

There is no 'Them' (2021)

https://www.thepullrequest.com/p/there-is-no-them
1•tosh•21m ago•0 comments

Never ask ChatGPT to generate strange images

https://old.reddit.com/r/ChatGPT/comments/1tlrz6v/i_gave_it_a_go_i_have_no_idea_where_gpt_gets_this/
1•zezaggering•21m ago•0 comments

Show HN: GitMo – Google Drive-like auto sync for GitHub

https://github.com/KyleBenzle/GitMo
1•WWIII_Historian•21m ago•0 comments

Reduce Token Usage

https://unpdf.ai/
1•dougSF70•22m ago•1 comments

The UFO files reveal a hidden truth about a growing religion

https://www.washingtonpost.com/opinions/2026/05/15/ufo-files-nod-growing-belief-aliens-mistrust-i...
2•bookofjoe•23m ago•3 comments

AbTARS – Self-hosted AI agent with persistent memory and 5-layer self-healing

https://github.com/aksika/abtars
1•aksika•23m ago•0 comments

China urges fund managers to support innovation, warns against concept hype

https://www.reuters.com/legal/government/china-urges-fund-managers-support-innovation-warns-again...
1•tartoran•30m ago•0 comments

Tell HN: Helium is the best browser I ever used

2•prmph•30m ago•0 comments

Illegal Numbers

https://en.wikipedia.org/wiki/Illegal_number
3•makerofthings•34m ago•1 comments

HEPA air purifiers may boost brain power in adults over 40 – new research

https://theconversation.com/hepa-air-purifiers-may-boost-brain-power-in-adults-over-40-new-resear...
5•PaulHoule•34m ago•0 comments

Silurus/ooxml: Pixel-faithful Office documents, rendered in the browser

https://github.com/yukiyokotani/office-open-xml-viewer
2•maxloh•36m ago•0 comments

Designing for Low-Context Engineering

https://apvarun.com/blog/designing-for-low-context-engineering
1•apvarun•37m ago•0 comments

Powering up a module from the IBM 604: an electronic calculator from 1948

https://www.righto.com/2026/06/ibm-604-thyraton-tube-module.html
10•elpocko•40m ago•1 comments

Cherry Powder as a Natural Antioxidant for Ready-to-Eat Beef Patties

https://www.mdpi.com/2304-8158/15/9/1483
1•PaulHoule•40m ago•0 comments

Fukushima, Japan faces "intelligent" bear

https://www.theguardian.com/world/2026/jun/05/bear-attacked-four-people-japan-missing-at-large
1•doctor_radium•41m ago•0 comments

fastai: style

https://docs.fast.ai/dev/style.html
1•tosh•42m ago•0 comments

A Mote in AI

https://mvcalder-01701.medium.com/a-mote-in-ai-8c544becc958
1•mvcalder•43m ago•0 comments