MCPcopy Create free account
hub / github.com/Azure/azure-storage-python / _get_random_bytes

Method _get_random_bytes

samples/file/file_usage.py:56–61  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

54 return dir_name
55
56 def _get_random_bytes(self, size):
57 rand = random.Random()
58 result = bytearray(size)
59 for i in range(size):
60 result[i] = rand.randint(0, 255)
61 return bytes(result)
62
63 def create_file(self):
64 share_name = self._create_share()

Callers 3

file_with_bytesMethod · 0.95
file_with_streamMethod · 0.95
file_with_pathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected