Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a pseudorandom generator for move tests #7554

Merged
merged 17 commits into from
Jan 24, 2023
Merged
Prev Previous commit
Next Next commit
Update crates/sui-framework/sources/test/random.move
Co-authored-by: Sam Blackshear <sam.blackshear@gmail.com>
  • Loading branch information
jonas-lj and sblackshear authored Jan 21, 2023
commit 21bb6395cc8185229029d588c86c8fa313ed1945
2 changes: 1 addition & 1 deletion crates/sui-framework/sources/test/random.move
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module sui::random {
let quotient = l / DIGEST_LENGTH;
let remainder = l - quotient * DIGEST_LENGTH;

let (i, output) = (0, vector::empty<u8>());
let (i, output) = (0, vector[]);
while (i < quotient) {
vector::append(&mut output, next_digest(random));
i = i + 1;
Expand Down