mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
i bring great shame to my family (#876)
This commit is contained in:
14
api/id/id.go
14
api/id/id.go
@@ -63,13 +63,13 @@ func New() Id {
|
||||
|
||||
id[8] = byte(machineID<<4) | byte((count<<4)>>60)
|
||||
|
||||
id[8] = byte(count >> 48)
|
||||
id[8] = byte(count >> 40)
|
||||
id[8] = byte(count >> 32)
|
||||
id[8] = byte(count >> 24)
|
||||
id[8] = byte(count >> 16)
|
||||
id[8] = byte(count >> 8)
|
||||
id[8] = byte(count)
|
||||
id[9] = byte(count >> 48)
|
||||
id[10] = byte(count >> 40)
|
||||
id[11] = byte(count >> 32)
|
||||
id[12] = byte(count >> 24)
|
||||
id[13] = byte(count >> 16)
|
||||
id[14] = byte(count >> 8)
|
||||
id[15] = byte(count)
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user