We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d8d2d commit 8797204Copy full SHA for 8797204
index.cjs
@@ -1,6 +1,6 @@
1
'use strict'
2
function randomString(length) {
3
- if (!length) length = Math.ceil(0.99 * 10 * 2)
+ if (!length) length = Math.ceil(Math.random() * 10 * 2)
4
var string = '',
5
allowedCharacters =
6
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*'
package.json
{
"name": "@smakss/random-string",
- "version": "1.0.6",
+ "version": "1.0.7",
"description": "Generates random dummy string.",
"type": "module",
"main": "index.cjs",
0 commit comments