diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2021-01-25 09:20:41 +0000 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-01-25 11:07:19 -0500 |
commit | a86d23c750d8605b356dc564ea60fa305ccee8e1 (patch) | |
tree | 999acb149926ef529f3c1f4b33e9049fc279c564 /vendor/github.com/google/uuid | |
parent | 479fc226044b745ecaafc2d5fa925afe6ca06de0 (diff) | |
download | podman-a86d23c750d8605b356dc564ea60fa305ccee8e1.tar.gz podman-a86d23c750d8605b356dc564ea60fa305ccee8e1.tar.bz2 podman-a86d23c750d8605b356dc564ea60fa305ccee8e1.zip |
Bump github.com/google/uuid from 1.1.5 to 1.2.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.1.5 to 1.2.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Commits](https://github.com/google/uuid/compare/v1.1.5...v1.2.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/google/uuid')
-rw-r--r-- | vendor/github.com/google/uuid/version4.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/google/uuid/version4.go b/vendor/github.com/google/uuid/version4.go index c110465db..86160fbd0 100644 --- a/vendor/github.com/google/uuid/version4.go +++ b/vendor/github.com/google/uuid/version4.go @@ -14,6 +14,14 @@ func New() UUID { return Must(NewRandom()) } +// NewString creates a new random UUID and returns it as a string or panics. +// NewString is equivalent to the expression +// +// uuid.New().String() +func NewString() string { + return Must(NewRandom()).String() +} + // NewRandom returns a Random (Version 4) UUID. // // The strength of the UUIDs is based on the strength of the crypto/rand |