Skip to content

Commit

Permalink
[rooch-networkgh-771] modify comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliciss committed Jul 22, 2024
1 parent 91ab432 commit 4039611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frameworks/rooch-framework/sources/simple_rng.move
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ module rooch_framework::simple_rng {
bytes_to_u128(seed_bytes)
}

/// Generate a random integer range in [low, high] for u64.
/// Generate a random integer range in [low, high) for u64.
public fun rand_u64_range(low: u64, high: u64): u64 {
assert!(high > low, ErrorInvalidArg);
let value = rand_u64();
(value % (high - low)) + low
}

/// Generate a random integer range in [low, high] for u128.
/// Generate a random integer range in [low, high) for u128.
public fun rand_u128_range(low: u128, high: u128): u128 {
assert!(high > low, ErrorInvalidArg);
let value = rand_u128();
Expand Down

0 comments on commit 4039611

Please sign in to comment.