mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
[k8s.io/apiserver/pkg/endpoints/discovery/]: improve readability
Do not wrap code here Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
parent
3f98b98c69
commit
95f7b4d854
@ -35,6 +35,5 @@ func StorageVersionHash(group, version, kind string) string {
|
||||
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).
|
||||
// P(10,000, 8) ~= 2.7*10^(-12), which is low enough.
|
||||
// See https://en.wikipedia.org/wiki/Birthday_problem#Approximations.
|
||||
return base64.StdEncoding.EncodeToString(
|
||||
bytes[:8])
|
||||
return base64.StdEncoding.EncodeToString(bytes[:8])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user