@thi.ng/random 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@3.0.1...@thi.ng/random@3.0.2) (2021-10-15)
7
+
8
+ **Note:** Version bump only for package @thi.ng/random
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@3.0.0...@thi.ng/random@3.0.1) (2021-10-13)
7
15
 
8
16
  **Note:** Version bump only for package @thi.ng/random
package/README.md CHANGED
@@ -89,7 +89,7 @@ node --experimental-repl-await
89
89
  > const random = await import("@thi.ng/random");
90
90
  ```
91
91
 
92
- Package sizes (gzipped, pre-treeshake): ESM: 1.83 KB
92
+ Package sizes (gzipped, pre-treeshake): ESM: 1.82 KB
93
93
 
94
94
  ## Dependencies
95
95
 
package/crypto.js CHANGED
@@ -11,9 +11,6 @@ import { randomBytes } from "./random-bytes.js";
11
11
  *
12
12
  */
13
13
  export class Crypto extends ARandom {
14
- buffer;
15
- u32;
16
- i;
17
14
  /**
18
15
  * @param size - buffer size in bytes (will be rounded to next multiple of 4)
19
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/random",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.1",
38
- "@thi.ng/checks": "^3.0.1",
39
- "@thi.ng/errors": "^2.0.1",
40
- "@thi.ng/hex": "^2.0.1"
37
+ "@thi.ng/api": "^8.0.2",
38
+ "@thi.ng/checks": "^3.0.2",
39
+ "@thi.ng/errors": "^2.0.2",
40
+ "@thi.ng/hex": "^2.0.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@thi.ng/testament": "^0.1.1"
43
+ "@thi.ng/testament": "^0.1.2"
44
44
  },
45
45
  "keywords": [
46
46
  "binary",
@@ -145,5 +145,5 @@
145
145
  "ksuid"
146
146
  ]
147
147
  },
148
- "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
148
+ "gitHead": "3c5f903104da150588946a94bb118ad559ad395d"
149
149
  }
package/smush32.js CHANGED
@@ -8,7 +8,6 @@ import { DEFAULT_SEED_32 } from "./constants.js";
8
8
  * - https://gist.github.com/voidqk/d112165a26b45244a65298933c0349a4
9
9
  */
10
10
  export class Smush32 extends ARandom {
11
- buffer;
12
11
  constructor(seed = DEFAULT_SEED_32) {
13
12
  super();
14
13
  this.buffer = new Uint32Array([seed, 0]);
package/xorshift128.js CHANGED
@@ -5,7 +5,6 @@ import { DEFAULT_SEED_128 } from "./constants.js";
5
5
  * Reference: https://en.wikipedia.org/wiki/Xorshift
6
6
  */
7
7
  export class XorShift128 extends ARandom {
8
- buffer;
9
8
  constructor(seed = DEFAULT_SEED_128) {
10
9
  super();
11
10
  this.buffer = new Uint32Array(4);
package/xorwow.js CHANGED
@@ -5,7 +5,6 @@ import { DEFAULT_SEED_160 } from "./constants.js";
5
5
  * Reference: https://en.wikipedia.org/wiki/Xorshift#xorwow
6
6
  */
7
7
  export class XorWow extends ARandom {
8
- buffer;
9
8
  constructor(seed = DEFAULT_SEED_160) {
10
9
  super();
11
10
  this.buffer = new Uint32Array(5);
package/xoshiro128.js CHANGED
@@ -7,7 +7,6 @@ import { DEFAULT_SEED_128 } from "./constants.js";
7
7
  * - http://prng.di.unimi.it/xoshiro128plusplus.c
8
8
  */
9
9
  export class Xoshiro128 extends ARandom {
10
- buffer;
11
10
  constructor(seed = DEFAULT_SEED_128) {
12
11
  super();
13
12
  this.buffer = new Uint32Array(4);
package/xsadd.js CHANGED
@@ -5,7 +5,6 @@ import { DEFAULT_SEED_32 } from "./constants.js";
5
5
  * Reference: https://github.com/MersenneTwister-Lab/XSadd/blob/develop/xsadd.h
6
6
  */
7
7
  export class XsAdd extends ARandom {
8
- buffer;
9
8
  constructor(seed = DEFAULT_SEED_32) {
10
9
  super();
11
10
  this.buffer = new Uint32Array(4);