Skip to content

Commit

Permalink
Revert StringType#random change
Browse files Browse the repository at this point in the history
  • Loading branch information
valadaptive committed Sep 17, 2024
1 parent 3941f74 commit 62b8e93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,7 @@ class StringType extends PrimitiveType {
}

random () {
return RANDOM.nextString(
Math.floor(-Math.log(RANDOM.nextFloat()) * 16) + 1
);
return RANDOM.nextString(RANDOM.nextInt(32));
}
}

Expand Down

0 comments on commit 62b8e93

Please sign in to comment.