Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Bitmessage/PyBitmessage
/ randomBytes
Function
randomBytes
src/helper_random.py:5–9 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
3
from
pyelliptic.openssl
import
OpenSSL
4
5
def
randomBytes(n):
6
try
:
7
return
os.urandom(n)
8
except
NotImplementedError:
9
return
OpenSSL.rand(n)
Callers
4
__init__
Method · 0.90
handle_connect
Method · 0.90
state_proxy_handshake_done
Method · 0.90
state_proxy_handshake_done
Method · 0.90
Calls
1
rand
Method · 0.80
Tested by
no test coverage detected