Skip to content

Commit

Permalink
suppress gosec warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chen3feng committed Aug 6, 2022
1 parent 69b905b commit 8126ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skiplist.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewSkipList[K Ordered, V any]() *SkipList[K, V] {
l := &SkipList[K, V]{
level: 1,
keyCmp: OrderedCompare[K],
rander: rand.New(rand.NewSource(time.Now().Unix())),
rander: rand.New(rand.NewSource(time.Now().Unix())), //nolint:gosec
prevsCache: make([]*skipListNode[K, V], skipListMaxLevel),
}
l.head.next = make([]*skipListNode[K, V], skipListMaxLevel)
Expand Down

0 comments on commit 8126ac0

Please sign in to comment.