File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ func (V0) Version() byte { return 0 }
7878func (V0 ) Encode (_ context.Context , projectID uint64 ) string {
7979 buf := make ([]byte , sizeV0 )
8080 binary .BigEndian .PutUint64 (buf , projectID )
81- rand .Read (buf [8 :])
81+ _ , _ = rand .Read (buf [8 :])
8282 return base62 .EncodeToString (buf )
8383}
8484
@@ -103,7 +103,7 @@ func (v V1) Encode(_ context.Context, projectID uint64) string {
103103 buf := make ([]byte , sizeV1 )
104104 buf [0 ] = v .Version ()
105105 binary .BigEndian .PutUint64 (buf [1 :], projectID )
106- rand .Read (buf [9 :])
106+ _ , _ = rand .Read (buf [9 :])
107107 return base64 .Base64UrlEncode (buf )
108108}
109109
@@ -133,7 +133,7 @@ func (v V2) Encode(ctx context.Context, projectID uint64) string {
133133 buf := make ([]byte , sizeV2 )
134134 buf [0 ] = v .Version ()
135135 binary .BigEndian .PutUint64 (buf [1 :], projectID )
136- rand .Read (buf [9 :])
136+ _ , _ = rand .Read (buf [9 :])
137137 return getPrefix (ctx ) + Separator + base64 .Base64UrlEncode (buf )
138138}
139139
You can’t perform that action at this time.
0 commit comments