Fixed an embarassing typo

This commit is contained in:
Zack 2013-07-21 18:40:24 -02:30
parent c999fb6462
commit 9b634504a6

View File

@ -144,8 +144,9 @@ void random_nonce(uint8_t * nonce)
uint32_t i, j, r, m = crypto_box_NONCEBYTES / 3, ind = 0;
for(i = 0; i < m; ++i)
{
r = ranom_int();
for (j = 0; j < 3; j++) {
r = random_int();
for (j = 0; j < 3; j++)
{
nonce[ind] = r % 1000 % 256;
r /= 1000;
++ind;