2016-02-04 18:23:16 +00:00
|
|
|
[
|
|
|
|
{
|
2016-02-10 07:54:23 +00:00
|
|
|
'repeat:100': {
|
2016-02-04 18:23:16 +00:00
|
|
|
|
2016-02-10 07:54:23 +00:00
|
|
|
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();
|
|
|
|
},
|
2016-02-04 18:23:16 +00:00
|
|
|
|
2016-02-10 07:54:23 +00:00
|
|
|
|
|
|
|
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)}}'
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2016-02-04 18:23:16 +00:00
|
|
|
}
|
|
|
|
]
|