*should be >=

This commit is contained in:
Derrick Hammer 2022-09-22 09:37:36 -04:00
parent 7399d4aa35
commit 6fa058d0a0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ export default class WisdomRpcQuery extends RpcQueryBase {
const list: string[] = []; const list: string[] = [];
let available = this._network.relays; let available = this._network.relays;
while (list.length < this._network.maxRelays) { while (list.length <= this._network.maxRelays) {
const item = Math.floor(Math.random() * available.length); const item = Math.floor(Math.random() * available.length);
list.push(available[item]); list.push(available[item]);
available.splice(item, 1); available.splice(item, 1);