Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mpdavis/python-jose
/ get_random_bytes
Function
get_random_bytes
jose/backends/native.py:11–12 ·
view source on GitHub ↗
(num_bytes)
Source
from the content-addressed store, hash-verified
9
10
11
def
get_random_bytes(num_bytes):
12
return
bytes(os.urandom(num_bytes))
13
14
15
class
HMACKey(Key):
Callers
2
_get_random_cek_bytes_for_enc
Function · 0.85
encrypt
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…