Lines Matching +full:9 +full:- +full:tools
1 diff --git a/src/lib/support/crypto/WeaveRNG-OpenSSL.cpp b/src/lib/support/crypto/WeaveRNG-OpenSSL.…
3 --- a/src/lib/support/crypto/WeaveRNG-OpenSSL.cpp
4 +++ b/src/lib/support/crypto/WeaveRNG-OpenSSL.cpp
5 @@ -53,8 +53,9 @@ WEAVE_ERROR InitSecureRandomDataSource(nl::Weave::Crypto::EntropyFunct entropyFu
9 - if (RAND_bytes((unsigned char *)buf, (int)len) != 1)
10 - return WEAVE_ERROR_RANDOM_DATA_UNAVAILABLE;
17 diff --git a/src/tools/weave/CertUtils.cpp b/src/tools/weave/CertUtils.cpp
19 --- a/src/tools/weave/CertUtils.cpp
20 +++ b/src/tools/weave/CertUtils.cpp
21 @@ -695,8 +695,9 @@ bool SetCertSerialNumber(X509 *cert)
25 - if (!RAND_bytes(reinterpret_cast<uint8_t *>(&rnd), sizeof(rnd)))
26 - ReportOpenSSLErrorAndExit("RAND_bytes", res = false);
33 diff --git a/src/tools/weave/Cmd_GenProvisioningData.cpp b/src/tools/weave/Cmd_GenProvisioningData.…
35 --- a/src/tools/weave/Cmd_GenProvisioningData.cpp
36 +++ b/src/tools/weave/Cmd_GenProvisioningData.cpp
37 @@ -543,8 +543,9 @@ char *GeneratePairingCode(uint32_t pairingCodeLen)
41 - if (!RAND_bytes((uint8_t *)pairingCode, pairingCodeLen - 1))
42 - ReportOpenSSLErrorAndExit("Failed to get random data", pairingCode = NULL);
43 + //if (!RAND_bytes((uint8_t *)pairingCode, pairingCodeLen - 1))
45 + memset((uint8_t *)pairingCode, 'A', pairingCodeLen - 1);
47 …// Convert the random data to characters in the range 0-9, A-H, J-N, P, R-Y (base-32 alphanumeric,…
48 for (uint32_t i = 0; i < pairingCodeLen - 1; i++)