initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

1
node_modules/math-random/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules/*

6
node_modules/math-random/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,6 @@
language: node_js
node_js:
- "6"
- "4"
- "0.12"
- "0.10"

17
node_modules/math-random/browser.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
module.exports = (function (global) {
var uint32 = 'Uint32Array' in global
var crypto = global.crypto || global.msCrypto
var rando = crypto && typeof crypto.getRandomValues === 'function'
var good = uint32 && crypto && rando
if (!good) return Math.random
var arr = new Uint32Array(1)
var max = Math.pow(2, 32)
function random () {
crypto.getRandomValues(arr)
return arr[0] / max
}
random.cryptographic = true
return random
})(typeof self !== 'undefined' ? self : window)

13
node_modules/math-random/node.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
var crypto = require('crypto')
var max = Math.pow(2, 32)
module.exports = random
module.exports.cryptographic = true
function random () {
var buf = crypto
.randomBytes(4)
.toString('hex')
return parseInt(buf, 16) / max
}

86
node_modules/math-random/package.json generated vendored Normal file
View File

@@ -0,0 +1,86 @@
{
"_args": [
[
"math-random@^1.0.1",
"/home/bernhard/freifunk-app/node_modules/randomatic"
]
],
"_from": "math-random@>=1.0.1 <2.0.0",
"_id": "math-random@1.0.1",
"_inCache": true,
"_installable": true,
"_location": "/math-random",
"_nodeVersion": "6.9.2",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/math-random-1.0.1.tgz_1499951218271_0.3070336836390197"
},
"_npmUser": {
"email": "spam@michaelrhod.es",
"name": "michaelrhodes"
},
"_npmVersion": "3.10.9",
"_phantomChildren": {},
"_requested": {
"name": "math-random",
"raw": "math-random@^1.0.1",
"rawSpec": "^1.0.1",
"scope": null,
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/randomatic"
],
"_resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz",
"_shasum": "8b3aac588b8a66e4975e3cdea67f7bb329601fac",
"_shrinkwrap": null,
"_spec": "math-random@^1.0.1",
"_where": "/home/bernhard/freifunk-app/node_modules/randomatic",
"author": {
"name": "Michael Rhodes"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/michaelrhodes/math-random/issues"
},
"dependencies": {},
"description": "a drop-in replacement for Math.random that uses cryptographically secure random number generation, where available",
"devDependencies": {
"array-unique": "~0.2.1",
"tape": "~4.2.2"
},
"directories": {},
"dist": {
"shasum": "8b3aac588b8a66e4975e3cdea67f7bb329601fac",
"tarball": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz"
},
"gitHead": "14f9d4cb231e26156e1295d4d55b624dfdb54d3c",
"homepage": "https://github.com/michaelrhodes/math-random",
"keywords": [
"Math.random",
"crypto.getRandomValues"
],
"license": "MIT",
"main": "node.js",
"maintainers": [
{
"name": "michaelrhodes",
"email": "spam@michaelrhod.es"
}
],
"name": "math-random",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/michaelrhodes/math-random.git"
},
"scripts": {
"test": "tape test.js"
},
"testling": {
"files": "test.js"
},
"version": "1.0.1"
}

26
node_modules/math-random/readme.md generated vendored Normal file
View File

@@ -0,0 +1,26 @@
# math-random
math-random is an drop-in replacement for Math.random that uses cryptographically secure random number generation, where available. It works in both browser and node environments.
[![Build status](https://travis-ci.org/michaelrhodes/math-random.svg?branch=master)](https://travis-ci.org/michaelrhodes/math-random)
## Install
```sh
npm install math-random
```
### Usage
```js
var random = require('math-random')
console.log(random())
=> 0.584293719381094
console.log(random.cryptographic)
=> true || undefined
```
### License
[MIT](http://opensource.org/licenses/MIT)

26
node_modules/math-random/test.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var test = require('tape')
var unique = require('array-unique')
var random = require('./')
test('it works', function (assert) {
var number, l = 1000, cache = []
for (var i = 0; i < l; i++) {
number = random()
if (number <= 0) {
assert.fail('a random number was less than or equal to zero')
assert.end()
return
}
if (number >= 1) {
assert.fail('a random number was greater than or equal to one')
assert.end()
return
}
cache.push(number)
}
assert.pass('all ' + l + ' random numbers were greater than zero and less than one')
assert.equal(cache.length, unique(cache).length, 'all ' + l + ' random numbers were unique')
assert.end()
})