From 768cdbf2754bdad815f3c794a1e2bc1dde352d9f Mon Sep 17 00:00:00 2001 From: Moshe Levi Date: Sat, 28 Mar 2020 20:22:01 +0300 Subject: [PATCH] Switch to github.com/google/uuid dependency It seems to be more well maintained and reliable at this time. google/uuid works out of box with Go modules, because the most recently tagged version is compatible with master (at this time, they're equal). --- sriovnet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sriovnet.go b/sriovnet.go index 25c2550..c2ed40c 100644 --- a/sriovnet.go +++ b/sriovnet.go @@ -2,7 +2,7 @@ package sriovnet import ( "fmt" - "github.com/satori/go.uuid" + "github.com/google/uuid" "github.com/vishvananda/netlink" "log" "net" @@ -223,7 +223,7 @@ func setVfPortGuid(handle *PfNetdevHandle, vf *VfObj, guid []byte) error { func SetVfDefaultGUID(handle *PfNetdevHandle, vf *VfObj) error { - uuid, err := uuid.NewV4() + uuid, err := uuid.NewRandom() if err != nil { return err }