Skip to content

Commit e2b00a5

Browse files
Helios-vmggregnazario
authored andcommitted
Made the description a bit more explicit.
1 parent 4ac10bf commit e2b00a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/build/smart-contracts/linter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ and
273273

274274
### `random_modulo`
275275

276-
Checks for expressions of the form `u{8|16|32|64|128|256}_integer() % x`. Getting the remainder of a division where the dividend is a random number results in a non-uniform distribution. For example, the result of `u8_integer() % 255` is twice as likely to be 0 than 1. Instead of wrapping with modulo, `u{8|16|32|64|128|256}_range(0, x)` can be used, which produces a uniform distribution.
276+
Checks for expressions of the form `u{8|16|32|64|128|256}_integer() % x`. Getting the remainder of a division where the dividend is a random number results in a non-uniform distribution, which could affect the fairness of a contract's behavior, depending on how the value is used. For example, the result of `u8_integer() % 255` is twice as likely to be 0 than 1. Instead of wrapping with modulo, `u{8|16|32|64|128|256}_range(0, x)` can be used, which produces a uniform distribution.
277277

278278
### `self_assignment`
279279

0 commit comments

Comments
 (0)