mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 14:08:26 +00:00
Make helper static.
This commit is contained in:
parent
2a65257182
commit
c8757c2134
@ -18,6 +18,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class KeyHelper {
|
public class KeyHelper {
|
||||||
|
|
||||||
|
private KeyHelper() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate an identity key pair. Clients should only do this once,
|
* Generate an identity key pair. Clients should only do this once,
|
||||||
* at install time.
|
* at install time.
|
||||||
@ -64,7 +66,7 @@ public class KeyHelper {
|
|||||||
* @param count The number of PreKeys to generate.
|
* @param count The number of PreKeys to generate.
|
||||||
* @return the list of generated PreKeyRecords.
|
* @return the list of generated PreKeyRecords.
|
||||||
*/
|
*/
|
||||||
public List<PreKeyRecord> generatePreKeys(int start, int count) {
|
public static List<PreKeyRecord> generatePreKeys(int start, int count) {
|
||||||
List<PreKeyRecord> results = new LinkedList<>();
|
List<PreKeyRecord> results = new LinkedList<>();
|
||||||
|
|
||||||
for (int i=0;i<count;i++) {
|
for (int i=0;i<count;i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user