Socket
Socket
Sign inDemoInstall

loadtest

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadtest - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

14

lib/timing.js

@@ -12,2 +12,3 @@ 'use strict';

var util = require('util');
var crypto = require('crypto');
var Log = require('log');

@@ -57,3 +58,3 @@ var microtime = require('microtime');

{
requestId = requestId || Math.floor(Math.random() * 0x100000000).toString(16);
requestId = requestId || createId();
requests[requestId] = microtime.now();

@@ -235,3 +236,14 @@ return requestId;

/**
* Create a unique, random token.
*/
function createId()
{
var value = '' + Date.now() + Math.random();
var hash = crypto.createHash('sha256');
return hash.update(value).digest('hex').toLowerCase();
}
/**
* Test latency ids.

@@ -238,0 +250,0 @@ */

2

package.json
{
"name": "loadtest",
"version": "0.1.9",
"version": "0.1.10",
"description": "Load test scripts.",

@@ -5,0 +5,0 @@ "homepage": "http://milliearth.org/",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc