jssm 5.89.3 → 5.89.6

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/jssm_util.d.ts CHANGED
@@ -58,12 +58,14 @@ declare const hook_name: (from: string, to: string) => string;
58
58
  declare const named_hook_name: (from: string, to: string, action: string) => string;
59
59
  /*******
60
60
  *
61
- * Creates a Mulberry32 random generator. Used by the randomness test suite.
61
+ * Creates a SplitMix32 random generator. Used by the randomness test suite.
62
62
  *
63
- * Sourced from `bryc` at StackOverflow: https://stackoverflow.com/a/47593316/763127
63
+ * Sourced from `bryc`: https://github.com/bryc/code/blob/master/jshash/PRNGs.md#splitmix32
64
+ *
65
+ * Replaces the Mulberry generator, which was found to have problems
64
66
  *
65
67
  */
66
- declare const make_mulberry_rand: (a?: number | undefined) => () => number;
68
+ declare function gen_splitmix32(a?: number | undefined): () => number;
67
69
  /*******
68
70
  *
69
71
  * Reduces an array to its unique contents. Compares with `===` and makes no
@@ -100,4 +102,4 @@ declare const unique: <T>(arr?: T[]) => T[];
100
102
  *
101
103
  */
102
104
  declare function find_repeated<T>(arr: T[]): [T, number][];
103
- export { seq, unique, find_repeated, arr_uniq_p, histograph, weighted_histo_key, weighted_rand_select, weighted_sample_select, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name, make_mulberry_rand };
105
+ export { seq, unique, find_repeated, arr_uniq_p, histograph, weighted_histo_key, weighted_rand_select, weighted_sample_select, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name, gen_splitmix32 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.89.3",
3
+ "version": "5.89.6",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },
@@ -138,7 +138,7 @@
138
138
  "typedoc": "^0.22.18",
139
139
  "typedoc-plugin-missing-exports": "^0.23.0",
140
140
  "typescript": "^4.7.4",
141
- "xml2js": "^0.4.23"
141
+ "xml2js": "^0.6.2"
142
142
  },
143
143
  "dependencies": {
144
144
  "better_git_changelog": "^1.6.1",