mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Make StringUtils.randomString(int) use SecureRandom
This commit is contained in:
parent
f79a7d9d5f
commit
658a671cbe
6 changed files with 34 additions and 8 deletions
|
@ -52,7 +52,7 @@ public class LoginIntegrationTest extends AbstractSmackLowLevelIntegrationTest {
|
|||
@SmackIntegrationTest
|
||||
public void testInvalidLogin() throws SmackException, IOException, XMPPException,
|
||||
InterruptedException, KeyManagementException, NoSuchAlgorithmException {
|
||||
final String nonExistentUserString = StringUtils.randomString(24);
|
||||
final String nonExistentUserString = StringUtils.insecureRandomString(24);
|
||||
XMPPTCPConnectionConfiguration conf = getConnectionConfiguration().setUsernameAndPassword(
|
||||
nonExistentUserString, "invalidPassword").build();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue