kopia lustrzana https://github.com/micropython/micropython-lib
os: Fix urandom() to use right open() function.
Thanks to @dpgeorge for report.pull/35/head
rodzic
038627f794
commit
e27b9cfe05
|
@ -223,5 +223,6 @@ def fsdecode(s):
|
|||
|
||||
|
||||
def urandom(n):
|
||||
with open("/dev/urandom", "rb") as f:
|
||||
import builtins
|
||||
with builtins.open("/dev/urandom", "rb") as f:
|
||||
return f.read(n)
|
||||
|
|
Ładowanie…
Reference in New Issue