aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_exec.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-14 16:17:37 +0200
committerGitHub <noreply@github.com>2022-09-14 16:17:37 +0200
commit017d81ddd0e8d228aadb949175c0aae1e4b9d925 (patch)
tree4036fd98987b27d78f090a46e108889450267860 /libpod/container_exec.go
parenta3876c2f854b6de58c7259f09eff0ec2b126f007 (diff)
parent75740be39541296d379e34902e11ba49e96a1867 (diff)
downloadpodman-017d81ddd0e8d228aadb949175c0aae1e4b9d925.tar.gz
podman-017d81ddd0e8d228aadb949175c0aae1e4b9d925.tar.bz2
podman-017d81ddd0e8d228aadb949175c0aae1e4b9d925.zip
Merge pull request #15788 from kolyshkin/non-crypto-id
all: stop using deprecated GenerateNonCryptoID
Diffstat (limited to 'libpod/container_exec.go')
-rw-r--r--libpod/container_exec.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/container_exec.go b/libpod/container_exec.go
index ca3961d8a..3a2cba52f 100644
--- a/libpod/container_exec.go
+++ b/libpod/container_exec.go
@@ -182,7 +182,7 @@ func (c *Container) ExecCreate(config *ExecConfig) (string, error) {
}
// Generate an ID for our new exec session
- sessionID := stringid.GenerateNonCryptoID()
+ sessionID := stringid.GenerateRandomID()
found := true
// This really ought to be a do-while, but Go doesn't have those...
for found {
@@ -194,7 +194,7 @@ func (c *Container) ExecCreate(config *ExecConfig) (string, error) {
}
}
if found {
- sessionID = stringid.GenerateNonCryptoID()
+ sessionID = stringid.GenerateRandomID()
}
}