Time based user hash

This commit is contained in:
V2Ray committed 2015-09-14 18:19:17 +02:00
1 parent 89f9332abd
commit 097915bf7e
11 files changed
+142 -68

No files matched your search

+1 -1
View File
@@ -13,5 +13,5 @@ func TestUUIDToID(t *testing.T) {
expectedBytes := []byte{0x24, 0x18, 0xd0, 0x87, 0x64, 0x8d, 0x49, 0x90, 0x86, 0xe8, 0x19, 0xdc, 0xa1, 0xd0, 0x06, 0xd3}
actualBytes, _ := UUIDToID(uuid)
assert.Bytes(actualBytes[:]).Named("UUID").Equals(expectedBytes)
assert.Bytes(actualBytes.Bytes()).Named("UUID").Equals(expectedBytes)
}