Don't use random.SystemRandom in tests

We do not need cryptographically secure random content for throwaway
test content.

Change-Id: Ic65aebbd686fcc1584d7c3dbeedc5eb0f6b1341c
This commit is contained in:
Monty Taylor
2020-06-26 17:03:50 -05:00
parent 3ee25df9e7
commit 2aededaa0d

View File

@@ -180,7 +180,7 @@ class TestObjectStoreProxy(test_proxy_base.TestProxyBase):
def test_file_segment(self):
file_size = 4200
content = ''.join(random.SystemRandom().choice(
content = ''.join(random.choice(
string.ascii_uppercase + string.digits)
for _ in range(file_size)).encode('latin-1')
self.imagefile = tempfile.NamedTemporaryFile(delete=False)