Skip to content

Commit 701ba98

Browse files
committed
use random number generator
1 parent b126a34 commit 701ba98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

auth/src/test/java/com/google/cloud/auth/samples/AuthExampleIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public void testAuthExplicitNoPath() throws IOException {
6464
@Test
6565
public void testAuthApiKey() throws IOException, IllegalStateException {
6666
String projectId = ServiceOptions.getDefaultProjectId();
67-
String keyDisplayName = "Test API Key " + System.currentTimeMillis();;
67+
java.util.Random random = new java.util.Random();
68+
String keyDisplayName = "Test API Key " + random.nextInt();
6869
String service = "language.googleapis.com";
6970
String method = "google.cloud.language.v2.LanguageService.AnalyzeSentiment";
7071
Key apiKey = null;

0 commit comments

Comments
 (0)