forked from lthn/blockchain
scalar_vec_t extended a bit
This commit is contained in:
parent
b5ad2ffcdc
commit
aecb49b403
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue