Fix compilation error by removing use of SecureRandom.getInstanceStrong()

Original commit: elastic/x-pack-elasticsearch@3a5d1c0e89
This commit is contained in:
jaymode 2014-12-31 14:21:49 -05:00
parent 0a9f51f3f5
commit b4b3101b63
1 changed files with 1 additions and 1 deletions

View File

@ -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));