Skip to content

Commit 0ea211f

Browse files
committed
Pick a positive random number
1 parent 6f9f594 commit 0ea211f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/testing/RemoteSpannerHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class RemoteSpannerHelper {
4242
private final Spanner client;
4343
private final InstanceId instanceId;
4444
private static int dbSeq;
45-
private static int dbPrefix = new Random().nextInt();
45+
private static int dbPrefix = new Random().nextInt(Integer.MAX_VALUE);
4646
private final List<Database> dbs = new ArrayList<>();
4747

4848
private RemoteSpannerHelper(SpannerOptions options, InstanceId instanceId, Spanner client) {

0 commit comments

Comments
 (0)