ESP32 urandom.getrandbits(64) value error

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
mflmartin
Posts: 43
Joined: Sat Jul 23, 2016 7:30 pm

ESP32 urandom.getrandbits(64) value error

Post by mflmartin » Tue Mar 02, 2021 10:18 pm

On ESP32, if I use urandom.getrandbits(64), I get "ValueError:" without any more info. If I use urandom.getrandbits(32) or lowerf, it works.

Is this a limitation or a bug maybe?

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: ESP32 urandom.getrandbits(64) value error

Post by shaoziyang » Wed Mar 03, 2021 2:16 am

Yes, max value for getrandbits() is 32.


Post Reply