mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-08-23 01:10:26 +00:00
Implemented broadcastAndStore and sendTrytes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package jota.utils;
|
||||
|
||||
import java.util.Random;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
/**
|
||||
* Created by pinpong on 13.12.16.
|
||||
@@ -10,7 +10,7 @@ public class SeedRandomGenerator {
|
||||
public static String generateNewSeed() {
|
||||
char[] chars = Constants.TRYTE_ALPHABET.toCharArray();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
Random random = new Random();
|
||||
SecureRandom random = new SecureRandom();
|
||||
for (int i = 0; i < Constants.SEED_LENGTH_MAX; i++) {
|
||||
char c = chars[random.nextInt(chars.length)];
|
||||
builder.append(c);
|
||||
|
||||
Reference in New Issue
Block a user