mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-26 02:28:09 +01:00
Add PreKeyList hashCode
This commit is contained in:
@@ -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