Options for splitSecret; rng is rand's option, secure by default.
rng
Readonly
Shares needed to recover; 1 ≤ threshold ≤ shareCount. A safe-integer number or a bigint.
1 ≤ threshold ≤ shareCount
number
bigint
Shares produced; at most MAX_SHARE_COUNT. A safe-integer number or a bigint.
Options for splitSecret;
rngis rand's option, secure by default.