31 lines
939 B
JavaScript
Executable File
31 lines
939 B
JavaScript
Executable File
[
|
|
{
|
|
'repeat:100': {
|
|
|
|
code: function(tags){
|
|
|
|
function randHex(){ return ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'][Math.floor(Math.random()*16)]; }
|
|
|
|
return randHex()+randHex()+'-'+randHex()+randHex()+'-'+randHex()+randHex()+'-'+randHex()+randHex();
|
|
},
|
|
|
|
|
|
username: '{{firstName()}}',
|
|
firstname: '{{firstName()}}',
|
|
lastname: '{{surname()}}',
|
|
email: function (tags) {
|
|
// Email tag is deprecated, because now you can produce an email as simple as this:
|
|
return this.firstname + '.' + this.lastname + '@gmail.com';
|
|
},
|
|
password: function(tags){
|
|
var result = '';
|
|
for(var i = 0 ; i < 40 ; i++ )
|
|
result += ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)];
|
|
return result;
|
|
},
|
|
status: '{{integer(0,1)}}'
|
|
|
|
|
|
}
|
|
}
|
|
] |