greybel-mock-environment 1.8.0 → 1.8.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.
@@ -68,7 +68,7 @@ var MarkovNameGenerator = /** @class */ (function () {
68
68
  MarkovNameGenerator.prototype.nextName = function (random) {
69
69
  var text = '';
70
70
  do {
71
- var index = random(this._samples.length);
71
+ var index = random(0, this._samples.length - 1);
72
72
  var length = this._samples[index].length;
73
73
  text = this._samples[index].substr(random(0, this._samples[index].length - this._order), this._order);
74
74
  while (text.length < length) {
@@ -125,7 +125,7 @@ var MarkovNameGenerator = /** @class */ (function () {
125
125
  return '?';
126
126
  }
127
127
  var list = this._chains.get(token);
128
- var index = random(list.length);
128
+ var index = random(0, list.length - 1);
129
129
  return list[index];
130
130
  };
131
131
  return MarkovNameGenerator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@types/random-seed": "^0.3.3",
50
50
  "blueimp-md5": "^2.19.0",
51
- "greyscript-core": "^0.9.16",
51
+ "greyscript-core": "^0.9.17",
52
52
  "random-seed": "^0.3.0",
53
53
  "random-username-generator": "^1.0.4"
54
54
  }