Example #1
0
func hashTimestamp(t protocol.Timestamp) []byte {
	bytes := make([]byte, 0, 32)
	t.Bytes(bytes)
	t.Bytes(bytes)
	t.Bytes(bytes)
	t.Bytes(bytes)
	return bytes
}
Example #2
0
func hashTimestamp(t protocol.Timestamp) []byte {
	once := t.Bytes()
	bytes := make([]byte, 0, 32)
	bytes = append(bytes, once...)
	bytes = append(bytes, once...)
	bytes = append(bytes, once...)
	bytes = append(bytes, once...)
	return bytes
}