From 590f03e933eaeb45726d24f025952d70a1df291f Mon Sep 17 00:00:00 2001 From: Marak Date: Sat, 22 Sep 2018 21:44:56 -0400 Subject: [api] [fix] user-agent randomness #521 * Now using `faker.random.number` * Adds faker seed and mersenne --- vendor/user-agent.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vendor/user-agent.js b/vendor/user-agent.js index ee449bc7..f7ef0fed 100644 --- a/vendor/user-agent.js +++ b/vendor/user-agent.js @@ -25,6 +25,7 @@ The license for that script is as follows: wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luka Pusic + */ function rnd(a, b) { @@ -33,6 +34,11 @@ function rnd(a, b) { b = b || 100; if (typeof b === 'number' && typeof a === 'number') { + + // 9/2018 - Added faker random to ensure mersenne and seed + var faker = require('../'); + return faker.random.number({ min: a, max: b}); + //rnd(int min, int max) returns integer between min, max return (function (min, max) { if (min > max) { -- cgit v1.2.3