mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Use Go 1.21 in CI, update minimum version to Go 1.20, lint fixes, update quic-go
This commit is contained in:
parent
fe14981dda
commit
5b203ad8c5
13 changed files with 59 additions and 58 deletions
|
@ -3,7 +3,7 @@ package core
|
|||
import (
|
||||
"bytes"
|
||||
"crypto/ed25519"
|
||||
"math/rand"
|
||||
"crypto/rand"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
@ -21,7 +21,7 @@ func TestVersionRoundtrip(t *testing.T) {
|
|||
// Generate a random public key for each time, since it is
|
||||
// a required field.
|
||||
test.publicKey = make(ed25519.PublicKey, ed25519.PublicKeySize)
|
||||
rand.Read(test.publicKey)
|
||||
_, _ = rand.Read(test.publicKey)
|
||||
|
||||
encoded := bytes.NewBuffer(test.encode())
|
||||
decoded := &version_metadata{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue