Update to using math/rand/v2

This commit is contained in:
Kovid Goyal
2024-02-11 21:00:30 +05:30
parent 720618bc37
commit 16d36c46fe
3 changed files with 7 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ import (
"encoding/base32"
"fmt"
"io/fs"
not_rand "math/rand"
not_rand "math/rand/v2"
"os"
"os/exec"
"os/user"
@@ -137,7 +137,7 @@ var CacheDir = sync.OnceValue(func() (cache_dir string) {
}
candidate = filepath.Join(Expanduser(candidate), "kitty")
}
os.MkdirAll(candidate, 0o755)
_ = os.MkdirAll(candidate, 0o755)
return candidate
})