fork(7) download
  1. process.stdin.resume();
  2. process.stdin.setEncoding('utf8');
  3.  
  4.  
  5. function generate_password(length)
  6. {
  7. return Math.random().toString(36).substring(0, length);
  8. }
  9.  
  10. console.log(generate_password(5));
  11.  
  12. console.log(generate_password(5));
  13.  
  14. console.log(generate_password(6));
  15.  
  16. console.log(generate_password(7));
  17.  
Success #stdin #stdout 0.12s 51088KB
stdin
Standard input is empty
stdout
0.4kv
0.k55
0.86ly
0.sm91a