We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f8869 commit 9f0d939Copy full SHA for 9f0d939
uuid/uuid.go
@@ -1,7 +1,7 @@
1
package uuid
2
3
import (
4
- "encoding/base64"
+ "encoding/base32"
5
"encoding/binary"
6
"net"
7
"os"
@@ -35,5 +35,5 @@ func init() {
35
func String() string {
36
binary.BigEndian.PutUint64(buf[4:], uint64(time.Now().Unix()))
37
binary.BigEndian.PutUint32(buf[12:], atomic.AddUint32(&inc, 1))
38
- return base64.RawURLEncoding.EncodeToString(buf)
+ return base32.HexEncoding.WithPadding(base32.NoPadding).EncodeToString(buf)
39
}
0 commit comments