Replace GenerateRandomID with GenerateNonCryptoID

This allow us to avoid entropy usage in non-crypto critical places.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov
2015-07-28 17:19:17 -07:00
parent 4553b6af4b
commit 6bca8ec3c9
11 changed files with 32 additions and 32 deletions

View File

@@ -135,7 +135,7 @@ func TestLoadWithVolume(t *testing.T) {
t.Fatal(err)
}
hostVolumeId := stringid.GenerateRandomID()
hostVolumeId := stringid.GenerateNonCryptoID()
vfsPath := filepath.Join(tmp, "vfs", "dir", hostVolumeId)
volumePath := filepath.Join(tmp, "volumes", hostVolumeId)
@@ -419,7 +419,7 @@ func TestRemoveLocalVolumesFollowingSymlinks(t *testing.T) {
t.Fatal(err)
}
hostVolumeId := stringid.GenerateRandomID()
hostVolumeId := stringid.GenerateNonCryptoID()
vfsPath := filepath.Join(tmp, "vfs", "dir", hostVolumeId)
volumePath := filepath.Join(tmp, "volumes", hostVolumeId)