MCPcopy 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
144def random_binary(length):
145 b64 = base64.b64encode(random_string(length))
146 return binary.Binary(b64, global_prng.choice([0, 1]))
147
148
149def random_primitive_value():

Callers 3

random_primitive_valueFunction · 0.85
random_id_valueFunction · 0.85
random_valueFunction · 0.85

Calls 1

random_stringFunction · 0.85

Tested by

no test coverage detected