@qiskit/devs-anu
Advanced tools
Comparing version 0.3.0 to 0.4.0
/** | ||
* @license | ||
* | ||
* Copyright (c) 2017-present, IBM Research. | ||
* Copyright (c) 2017, IBM. | ||
* | ||
* This source code is licensed under the Apache license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
* This source code is licensed under the Apache License, Version 2.0 found in | ||
* the LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
@@ -9,0 +9,0 @@ |
/** | ||
* @license | ||
* | ||
* Copyright (c) 2017-present, IBM Research. | ||
* Copyright (c) 2017, IBM. | ||
* | ||
* This source code is licensed under the Apache license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
* This source code is licensed under the Apache License, Version 2.0 found in | ||
* the LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
@@ -14,13 +14,10 @@ | ||
const utils = require('@qiskit/utils'); | ||
const utils = require('./utils'); | ||
const qrand = util.promisify(require('qrand').getRandomHexOctets); | ||
const { name } = require('../package'); | ||
const dbg = utils.dbg(__filename); | ||
const dbg = utils.debug(name); | ||
module.exports = async (len = 16) => { | ||
// "/2" The library expecst the number of octects and we ask for number of | ||
// hexadecimal digits (8 octets = 16 hex chars). | ||
const octects = await qrand(len / 2); | ||
@@ -27,0 +24,0 @@ dbg('Generated number (octects):', { octects, len: octects.length }); |
{ | ||
"name": "@qiskit/devs-anu", | ||
"version": "0.3.0", | ||
"description": "Australia National University engine for QISKit for developers", | ||
"version": "0.4.0", | ||
"description": "Australia National University engine for Qiskit for developers", | ||
"author": { | ||
@@ -9,13 +9,13 @@ "name": "IBM RESEARCH", | ||
}, | ||
"homepage": "https://github.com/QISKit/qiskit-sdk-js", | ||
"homepage": "https://github.com/Qiskit/qiskit-js", | ||
"contributors": [ | ||
"https://github.com/QISKit/qiskit-sdk-js/graphs/contributors" | ||
"https://github.com/Qiskit/qiskit-js/graphs/contributors" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/QISKit/qiskit-sdk-js" | ||
"url": "https://github.com/Qiskit/qiskit-js" | ||
}, | ||
"scripts": { | ||
"dep-check": "depcheck", | ||
"test": "mocha --recursive test --timeout 20000" | ||
"test": "mocha --recursive test --timeout 20000 --color" | ||
}, | ||
@@ -32,6 +32,6 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/QISKit/qiskit-sdk-js/issues" | ||
"url": "https://github.com/Qiskit/qiskit-js/issues" | ||
}, | ||
"dependencies": { | ||
"@qiskit/utils": "^0.3.0", | ||
"@qiskit/utils": "^0.4.0", | ||
"qrand": "^0.1.3" | ||
@@ -38,0 +38,0 @@ }, |
@@ -1,4 +0,4 @@ | ||
# QISKit.js algorithms (ANU) | ||
# Qiskit.js devs (ANU) | ||
The [Australian National University](http://www.anu.edu.au) [Quantum Random Numbers Server](https://qrng.anu.edu.au) engine (chip) for the [QISKit algorithms package](https://github.com/QISKit/qiskit-sdk-js/tree/master/packages/qiskit-devs). | ||
The [Australian National University](http://www.anu.edu.au) [Quantum Random Numbers Server](https://qrng.anu.edu.au) engine (chip) for the [Qiskit devs package](https://github.com/Qiskit/qiskit-js/tree/master/packages/qiskit-devs). | ||
@@ -5,0 +5,0 @@ ## Install |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3502
5
52
1
1
+ Added@qiskit/utils@0.4.0(transitive)
- Removed@qiskit/utils@0.3.0(transitive)
Updated@qiskit/utils@^0.4.0