mirror of
https://github.com/docker/cli.git
synced 2026-09-26 01:10:35 -04:00
Replace GenerateRandomID with GenerateNonCryptoID
This allow us to avoid entropy usage in non-crypto critical places. Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: 6bca8ec3c9ccc169c53b3d7060fe5c8ba8670aac Component: engine
This commit is contained in:
@@ -127,7 +127,7 @@ var globalTestID string
|
||||
// new directory.
|
||||
func TestDirectory(templateDir string) (dir string, err error) {
|
||||
if globalTestID == "" {
|
||||
globalTestID = stringid.GenerateRandomID()[:4]
|
||||
globalTestID = stringid.GenerateNonCryptoID()[:4]
|
||||
}
|
||||
prefix := fmt.Sprintf("docker-test%s-%s-", globalTestID, GetCallerName(2))
|
||||
if prefix == "" {
|
||||
|
||||
Reference in New Issue
Block a user