4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-17 22:16:07 +00:00

Use Go 1.21 in CI, update minimum version to Go 1.20, lint fixes, update quic-go

This commit is contained in:
Neil Alexander
2023-08-12 18:12:58 +01:00
parent fe14981dda
commit 5b203ad8c5
13 changed files with 59 additions and 58 deletions

View File

@ -3,13 +3,13 @@ package address
import (
"bytes"
"crypto/ed25519"
"math/rand"
"crypto/rand"
"testing"
)
func TestAddress_Address_IsValid(t *testing.T) {
var address Address
rand.Read(address[:])
_, _ = rand.Read(address[:])
address[0] = 0
@ -32,7 +32,7 @@ func TestAddress_Address_IsValid(t *testing.T) {
func TestAddress_Subnet_IsValid(t *testing.T) {
var subnet Subnet
rand.Read(subnet[:])
_, _ = rand.Read(subnet[:])
subnet[0] = 0