nodejs一个产生随机数的demo

来源:互联网 发布:c语言建立dat文件 编辑:程序博客网 时间:2024/05/17 18:47
   如下,  
var crypto = require('crypto');crypto.randomBytes(16,function(ex,buf){    var token = buf.toString('hex');    console.log(token);});

0 0