celestiaorg / rsmt2d

Go implementation of two dimensional Reed-Solomon merkle tree data availability scheme.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rand.Read has been deprecated since Go 1.20

rootulp opened this issue · comments

Context

golangci-lint is failing here

Problem

$ golangci-lint run
codec_test.go:40:13: SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
		_, err := rand.Read(randData)