Skip to content

Commit 480054f

Browse files
committed
Use SecureRandom instead of Random. Release 1.2.8.
1 parent b81cc9f commit 480054f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The goal was to reuse their locale data files.
1717
}
1818

1919
dependencies {
20-
compile 'com.github.blocoio:faker:1.2.7'
20+
compile 'com.github.blocoio:faker:1.2.8'
2121
}
2222

2323
You can use ```testCompile``` or ```androidTestCompile```, if you only want to use Faker for testing.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'java'
22
apply plugin: 'maven'
33

4-
version = '1.2.7'
4+
version = '1.2.8'
55
group = 'com.github.blocoio'
66

77
sourceCompatibility = JavaVersion.VERSION_1_7

src/main/java/io/bloco/faker/helpers/RandomHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package io.bloco.faker.helpers;
22

3+
import java.security.SecureRandom;
34
import java.util.List;
4-
import java.util.Random;
55

66
public class RandomHelper {
77

8-
private Random random;
8+
private SecureRandom random;
99

1010
public RandomHelper() {
11-
random = new Random();
11+
random = new SecureRandom();
1212
}
1313

1414
public <T> T sample(List<T> options) {

0 commit comments

Comments
 (0)