Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Improve comment for randomCapitalUsername function
Browse files Browse the repository at this point in the history
  • Loading branch information
4miners committed Oct 12, 2017
1 parent 2166542 commit e4ba44c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ node.randomUsername = function () {

// Returns a random capitialized username
node.randomCapitalUsername = function () {
var size = node.randomNumber(1, 15); // Min. username size is 1, Max. username size is 16
// Min. username size is 1, Max. username size is 16 (we use 15 as max because of hardcoded first letter)
var size = node.randomNumber(1, 15);
var username = 'A';
var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@$&_.';

Expand Down

0 comments on commit e4ba44c

Please sign in to comment.