mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:16:50 +00:00
Add PreKeyList hashCode
This commit is contained in:
1 parent
7d8336fd30
commit
2dc5857645
1 file changed
+7
@@ -50,4 +50,11 @@ public class UnstructuredPreKeyList {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int ret = 0xFBA4C795 * keys.size();
|
||||
for (PreKey key : keys)
|
||||
ret ^= key.getPublicKey().hashCode();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user