Skip to content

Commit

Permalink
chore: add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 12, 2022
1 parent c71c545 commit f6b9a28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mersenne.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export class Mersenne {
}

rand(max?: number, min?: number) {
// TODO @Shinigami92 2022-01-11: This is buggy, cause if min is not passed but only max,
// then min will be undefined and this result in NaN for the whole function
if (max === undefined) {
min = 0;
max = 32768;
Expand Down

0 comments on commit f6b9a28

Please sign in to comment.