smol-rs / fastrand

A simple and fast random number generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to generate random number 58 bit length ?

Manosuper opened this issue · comments

Subj.

Thank you for your answer.

Thank you for your REALLY FAST GENERATOR !

If I'm remembering my bit math correctly...

fastrand::u64(..) & ((1 << 59) - 1)

What is the application? I'm curious.

commented

Mister, thank you very mach for your fast answer.

I use version of fastrng fo Python

https://github.com/lemire/fastrand

How I can use fast rng to generate 58 bit random in Python ?

Thank You

The fastrand Python package is unrelated to this crate