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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user