diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-20 17:25:41 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-20 17:25:41 +0200 |
| commit | db4fe78387247ff039602030d964e4c0d6e39f46 (patch) | |
| tree | 8e9ba8cd5e380c813376f6878b9593e84dff61b7 /tests/sasl.cpp | |
| parent | 1e24a0feab544db99f19e55eb81c836f62c4585f (diff) | |
| download | qxmpp-db4fe78387247ff039602030d964e4c0d6e39f46.tar.gz | |
fix tests
Diffstat (limited to 'tests/sasl.cpp')
| -rw-r--r-- | tests/sasl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sasl.cpp b/tests/sasl.cpp index 59a46174..0c57336b 100644 --- a/tests/sasl.cpp +++ b/tests/sasl.cpp @@ -86,7 +86,8 @@ void tst_QXmppSaslClient::testDigestMd5() { QFETCH(QByteArray, qop); - qsrand(0); + QXmppSaslDigestMd5::setNonce("AMzVG8Oibf+sVUCPPlWLR8lZQvbbJtJB9vJd+u3c6dw="); + QXmppSaslClient *client = QXmppSaslClient::create("DIGEST-MD5"); QVERIFY(client != 0); QCOMPARE(client->mechanism(), QLatin1String("DIGEST-MD5")); @@ -182,7 +183,7 @@ void tst_QXmppSaslServer::testAnonymous() void tst_QXmppSaslServer::testDigestMd5() { - qsrand(1); + QXmppSaslDigestMd5::setNonce("OI08/m+QRm6Ma+fKOjuqVXtz40sR5u9/u5GN6sSW0rs="); QXmppSaslServer *server = QXmppSaslServer::create("DIGEST-MD5"); QVERIFY(server != 0); |
