diff --git a/lib/types.js b/lib/types.js index f79e8cbb..1594e71d 100644 --- a/lib/types.js +++ b/lib/types.js @@ -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)); } }