New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/random

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/random - npm Package Compare versions

Comparing version 1.4.10 to 1.4.11

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.10...@thi.ng/random@1.4.11) (2020-06-14)
**Note:** Version bump only for package @thi.ng/random
## [1.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.9...@thi.ng/random@1.4.10) (2020-06-01)

@@ -8,0 +16,0 @@

2

constants.js

@@ -6,4 +6,4 @@ export const DEFAULT_SEED_32 = 0xdecafbad;

0xe41f67e3,
0x5c83ec1a
0x5c83ec1a,
];
export const DEFAULT_SEED_160 = [...DEFAULT_SEED_128, 0xf69a5c71];

@@ -33,3 +33,3 @@ 'use strict';

0xe41f67e3,
0x5c83ec1a
0x5c83ec1a,
];

@@ -36,0 +36,0 @@ const DEFAULT_SEED_160 = [...DEFAULT_SEED_128, 0xf69a5c71];

{
"name": "@thi.ng/random",
"version": "1.4.10",
"version": "1.4.11",
"description": "Pseudo-random number generators w/ unified API",

@@ -46,4 +46,4 @@ "module": "./index.js",

"dependencies": {
"@thi.ng/api": "^6.11.0",
"@thi.ng/checks": "^2.7.0",
"@thi.ng/api": "^6.11.1",
"@thi.ng/checks": "^2.7.1",
"tslib": "^1.12.0"

@@ -67,3 +67,3 @@ },

"sideEffects": false,
"gitHead": "a25c4eed5fba2c7d1fddb02dd706bae534affc93"
"gitHead": "ddf9b8b67d3d60bcca88143528ee33b843cc089e"
}
import { ARandom } from "./arandom";
import { DEFAULT_SEED_32 } from "./constants";
// https://github.com/thi-ng/ct-head/blob/master/random.h
// https://github.com/thi-ng/ct-head/blob/develop/random.h
// https://gist.github.com/voidqk/d112165a26b45244a65298933c0349a4

@@ -5,0 +5,0 @@ export class Smush32 extends ARandom {

import { ARandom } from "./arandom";
import { DEFAULT_SEED_32 } from "./constants";
// https://github.com/MersenneTwister-Lab/XSadd/blob/master/xsadd.h
// https://github.com/MersenneTwister-Lab/XSadd/blob/develop/xsadd.h
export class XsAdd extends ARandom {

@@ -5,0 +5,0 @@ constructor(seed = DEFAULT_SEED_32) {

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