diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:06:11 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:06:11 -0500 |
| commit | 7fc76451a5bc3b9f6a08eaa3f9bb31d450ee79a3 (patch) | |
| tree | 720ec93a89696ce7f97fc01121cb341809be086b /tests/unit_tests/mnemonics.cpp | |
| parent | 8774384acec8f5020323f11585b5cdeb02ea00b0 (diff) | |
| parent | de27651f809256cd601bdc5d8015e5fe5fdd3556 (diff) | |
| download | monzero-core-7fc76451a5bc3b9f6a08eaa3f9bb31d450ee79a3.tar.gz monzero-core-7fc76451a5bc3b9f6a08eaa3f9bb31d450ee79a3.tar.xz monzero-core-7fc76451a5bc3b9f6a08eaa3f9bb31d450ee79a3.zip | |
Merge pull request #5529
de27651 use crypto::rand instead of libc rand in a few tests (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests/mnemonics.cpp')
| -rw-r--r-- | tests/unit_tests/mnemonics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/mnemonics.cpp b/tests/unit_tests/mnemonics.cpp index 16634e7a1..51feb54e4 100644 --- a/tests/unit_tests/mnemonics.cpp +++ b/tests/unit_tests/mnemonics.cpp @@ -82,7 +82,7 @@ namespace crypto::secret_key randkey; for (size_t ii = 0; ii < sizeof(randkey); ++ii) { - randkey.data[ii] = rand(); + randkey.data[ii] = crypto::rand<uint8_t>(); } crypto::ElectrumWords::bytes_to_words(randkey, w_seed, language.get_language_name()); seed = std::string(w_seed.data(), w_seed.size()); @@ -256,4 +256,4 @@ TEST(mnemonics, partial_word_tolerance) res = crypto::ElectrumWords::words_to_bytes(seed_1, key_1, language_name_1); ASSERT_EQ(true, res); ASSERT_STREQ(language_name_1.c_str(), "English"); -}
\ No newline at end of file +} |
