Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FoundationDB/fdb-document-layer
/ random_binary
Function
random_binary
test/correctness/gen.py:144–146 ·
view source on GitHub ↗
(length)
Source
from the content-addressed store, hash-verified
142
143
144
def
random_binary(length):
145
b64 = base64.b64encode(random_string(length))
146
return
binary.Binary(b64, global_prng.choice([0, 1]))
147
148
149
def
random_primitive_value():
Callers
3
random_primitive_value
Function · 0.85
random_id_value
Function · 0.85
random_value
Function · 0.85
Calls
1
random_string
Function · 0.85
Tested by
no test coverage detected