File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
integration-test/src/test/java/org/cloudfoundry Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -339,8 +339,8 @@ ReactorLogCacheClient logCacheClient(
339339 }
340340
341341 @ Bean
342- RandomNameFactory nameFactory (Random random ) {
343- return new RandomNameFactory (random );
342+ RandomNameFactory nameFactory () {
343+ return new RandomNameFactory (new SecureRandom () );
344344 }
345345
346346 @ Bean (initMethod = "block" )
@@ -447,11 +447,6 @@ String planName(NameFactory nameFactory) {
447447 return nameFactory .getPlanName ();
448448 }
449449
450- @ Bean
451- SecureRandom random () {
452- return new SecureRandom ();
453- }
454-
455450 @ Bean
456451 RoutingClient routingClient (ConnectionContext connectionContext , TokenProvider tokenProvider ) {
457452 return ReactorRoutingClient .builder ()
Original file line number Diff line number Diff line change 2121import static org .cloudfoundry .util .DelayUtils .exponentialBackOff ;
2222
2323import java .math .BigInteger ;
24+ import java .security .SecureRandom ;
2425import java .time .Duration ;
2526import java .util .Random ;
2627import java .util .function .Predicate ;
@@ -40,14 +41,15 @@ public class LogCacheTest extends AbstractIntegrationTest implements Initializin
4041
4142 @ Autowired LogCacheClient logCacheClient ;
4243
43- @ Autowired Random random ;
4444
4545 @ Autowired private Mono <ApplicationUtils .ApplicationMetadata > testLogCacheApp ;
4646
4747 private ApplicationUtils .ApplicationMetadata testLogCacheAppMetadata ;
4848
4949 @ Autowired private TestLogCacheEndpoints testLogCacheEndpoints ;
5050
51+ private final Random random = new SecureRandom ();
52+
5153 @ Override
5254 public void afterPropertiesSet () {
5355 this .testLogCacheAppMetadata = this .testLogCacheApp .block ();
You can’t perform that action at this time.
0 commit comments