Fix compilation error by removing use of SecureRandom.getInstanceStrong()
Original commit: elastic/x-pack-elasticsearch@3a5d1c0e89
This commit is contained in:
parent
0a9f51f3f5
commit
b4b3101b63
|
@ -217,7 +217,7 @@ public class HandshakeWaitingHandlerTests extends ElasticsearchTestCase {
|
|||
@Override
|
||||
public ChannelFuture call() throws Exception {
|
||||
ChannelBuffer buffer = ChannelBuffers.buffer(8);
|
||||
buffer.writeLong(SecureRandom.getInstanceStrong().nextLong());
|
||||
buffer.writeLong(SecureRandom.getInstance("SHA1PRNG").nextLong());
|
||||
|
||||
// Connect and wait, then immediately start writing
|
||||
ChannelFuture future = bootstrap.connect(new InetSocketAddress("localhost", port));
|
||||
|
|
Loading…
Reference in New Issue