1
0
Fork 0
forked from lthn/blockchain

scalar_vec_t extended a bit

This commit is contained in:
sowle 2023-02-22 22:01:55 +01:00
parent b5ad2ffcdc
commit aecb49b403
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -886,6 +886,19 @@ namespace crypto
scalar_t calc_hs() const;
void make_random()
{
for(size_t size = this->size(), i = 0; i < size; ++i)
at(i).make_random();
}
void resize_and_make_random(size_t size)
{
this->resize(size);
make_random();
}
}; // scalar_vec_t