mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-05 04:11:59 +00:00
net/netaddr: start migrating to net/netip via new netaddr adapter package
Updates #5162 Change-Id: Id7bdec303b25471f69d542f8ce43805328d56c12 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
7b1a91dfd3
commit
7eaf5e509f
@@ -156,7 +156,7 @@ func (p NodePublic) Shard() uint8 {
|
||||
// good-enough-for-sharding random, so we haphazardly
|
||||
// combine raw values of the key to give us something sufficient.
|
||||
s := uint8(p.k[31]) + uint8(p.k[30]) + uint8(p.k[20])
|
||||
return s ^ uint8(p.k[2] + p.k[12])
|
||||
return s ^ uint8(p.k[2]+p.k[12])
|
||||
}
|
||||
|
||||
// ParseNodePublicUntyped parses an untyped 64-character hex value
|
||||
|
||||
Reference in New Issue
Block a user