MergeTwoHash computes the hash of the concatenate of two hash.
(l *hash.Hash, r *hash.Hash)
| 78 | |
| 79 | // MergeTwoHash computes the hash of the concatenate of two hash. |
| 80 | func MergeTwoHash(l *hash.Hash, r *hash.Hash) *hash.Hash { |
| 81 | result := hash.THashH(append(append([]byte{}, (*l)[:]...), (*r)[:]...)) |
| 82 | return &result |
| 83 | } |