@wishknish/knishio-client-ts 0.7.8 → 0.8.0

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/dist/index.cjs CHANGED
@@ -1923,7 +1923,7 @@ function generateSecret(seed = null, length = CRYPTO_CONSTANTS.SECRET_LENGTH) {
1923
1923
  if (seed) {
1924
1924
  const sponge = new JsSHA__default.default("SHAKE256", "TEXT");
1925
1925
  sponge.update(seed);
1926
- return sponge.getHash("HEX", { outputLen: length * 2 }).toLowerCase();
1926
+ return sponge.getHash("HEX", { outputLen: length * 4 }).toLowerCase();
1927
1927
  } else {
1928
1928
  return randomString(length);
1929
1929
  }