mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 14:53:52 +00:00
chore: bump Go to 1.26.1 and golangci-lint to v2.11.2; fix typos and lint nolints
This commit is contained in:
1 parent
844f139a10
commit
026d05f1bf
12 files changed
+23
-24
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
func NewDefaultRandSource() rand.Source {
|
||||
now := time.Now().UnixNano()
|
||||
return rand.NewPCG(
|
||||
uint64(now), //nolint:gosec // G115: Safe conversion; UnixNano timestamp used as random seed, bit pattern is intentional
|
||||
uint64(now>>32), //nolint:gosec // G115: Safe conversion; right-shifted timestamp for seed entropy, overflow is acceptable
|
||||
uint64(now),
|
||||
uint64(now>>32),
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user