servidor funciona, gpio desabilitat

This commit is contained in:
nau
2016-06-21 18:42:57 +02:00
parent b5a55ed6b1
commit 4825f68edf
874 changed files with 109057 additions and 0 deletions

14
node_modules/shortid/lib/random/random-byte-browser.js generated vendored Executable file
View File

@@ -0,0 +1,14 @@
'use strict';
var crypto = window.crypto || window.msCrypto; // IE 11 uses window.msCrypto
function randomByte() {
if (!crypto || !crypto.getRandomValues) {
return Math.floor(Math.random() * 256) & 0x30;
}
var dest = new Uint8Array(1);
crypto.getRandomValues(dest);
return dest[0] & 0x30;
}
module.exports = randomByte;

10
node_modules/shortid/lib/random/random-byte.js generated vendored Executable file
View File

@@ -0,0 +1,10 @@
'use strict';
var crypto = require('crypto');
var randomBytes = crypto.randomBytes;
function randomByte() {
return randomBytes(1)[0] & 0x30;
}
module.exports = randomByte;

25
node_modules/shortid/lib/random/random-from-seed.js generated vendored Executable file
View File

@@ -0,0 +1,25 @@
'use strict';
// Found this seed-based random generator somewhere
// Based on The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)
var seed = 1;
/**
* return a random number based on a seed
* @param seed
* @returns {number}
*/
function getNextValue() {
seed = (seed * 9301 + 49297) % 233280;
return seed/(233280.0);
}
function setSeed(_seed_) {
seed = _seed_;
}
module.exports = {
nextValue: getNextValue,
seed: setSeed
};