Drop deprecated ioutil
`ioutil` has been deprecated by golang. All the code in `ioutil` just forwards functionality to code in either the `io` or `os` packages. See https://github.com/golang/go/pull/51961 for more info. Signed-off-by: Jeff Widman <jeff@jeffwidman.com>
This commit is contained in:
@@ -456,7 +456,7 @@ func (s *snapshotter) openOrCreateScratch(ctx context.Context, sizeGB int, scrat
|
||||
|
||||
log.G(ctx).Debugf("vhdx %s not found, creating a new one", vhdFileName)
|
||||
|
||||
// Golang logic for ioutil.TempFile without the file creation
|
||||
// Golang logic for os.CreateTemp without the file creation
|
||||
r := uint32(time.Now().UnixNano() + int64(os.Getpid()))
|
||||
r = r*1664525 + 1013904223 // constants from Numerical Recipes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user