Now you need to convert the result of crypto.randomBytes to decimal, you can do that as follow: var x= crypto.randomBytes(1); return format(x, 'dec');.
確定! 回上一頁