]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use os.urandom in volume transfer
authorOllie Leahy <oliver.leahy@hp.com>
Fri, 30 May 2014 11:57:02 +0000 (11:57 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Tue, 3 Jun 2014 08:09:04 +0000 (08:09 +0000)
commit6791fa41e06beab23bc7832a3bfa9ab28adf1e34
tree9870fdaa8a8d84d740d2c90ad06cb1d5909212e6
parentf40b4a36b41b88223e8a41fbccd1248ff4bba3ec
Use os.urandom in volume transfer

This patch replaces a call to random.random() with a call to
os.urandom(), which generates a higher quality random number.

Closes-Bug: #1319643

Change-Id: Ifaa2216d4905f5286884629beac52b25249d621f
cinder/transfer/api.py