1
0
mirror of https://github.com/S2-/securerandomstring.git synced 2025-08-02 18:30:04 +02:00

Merge branch 'master' of github.com:mrsangrin/secure-random-string

This commit is contained in:
Sandro Ariel Gómez Araya
2017-11-24 12:10:28 -03:00
3 changed files with 73 additions and 5 deletions

View File

@@ -58,8 +58,8 @@ srs({alphanumeric: true}, function(err, sr) {;
});
// sync tests
test('generate a random string 32 chars long (sync)', srs().length, 32);
test('generate a random string 1 chars long (sync)', srs({length:1}).length, 1);
test('generate a random string 256 chars long (sync)', srs({length:256}).length, 256);
test('generate a random string 1 chars long (sync)', srs({length: 1}).length, 1);
test('generate a random string 256 chars long (sync)', srs({length: 256}).length, 256);
//in 2000 chars there should be at least one substitution