【文件属性】:
文件名称:QRANoDe:https的节点包装
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-27 15:29:49
JavaScript
QRANoDe
用于node.js的量子随机数生成器。
从ANU量子随机数生成器获取N个长度的随机数
请参阅此处以获取更多信息: :
安装
npm i qranode
用法:
const qranode = require ( 'qranode' )
// promise
qranode ( 'uint8' , 5 ) // get 5 numbers from 0 to 255
. then ( console . log ) // log the output
. catch ( console . error ) // or the errors, if any
// async/await
let numbers = await qranode ( 'uint8' , 5 )
// you can even get hex!
qranode ( 'hex16' , 5 ,
【文件预览】:
QRANoDe-master
----.gitattributes(66B)
----LICENSE(34KB)
----qranode.js(2KB)
----README.md(686B)
----.gitignore(22B)
----package-lock.json(2KB)
----package.json(570B)