@tktb-tess/util-fns 0.7.0 → 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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Utility functions for personal use
4
4
 
5
- ESM only
5
+ This is an ESM-only package.
6
6
 
7
7
  Available in both a browser and Node.js environment.
8
8
 
@@ -1,21 +1,20 @@
1
1
  /**
2
- * Baillie-PSW素数判定法
3
- * @param n 判定したい整数
4
- * @returns
2
+ * Baillie-PSW primality test
3
+ * @param n tested integer
4
+ * @returns whether `n` is a prime
5
5
  */
6
- declare const bailliePSW: (n: bigint) => boolean;
6
+ export declare const bailliePSW: (n: bigint) => boolean;
7
7
  /**
8
- * 指定範囲内の確率的素数を返す
9
- * @param min 下限
10
- * @param max 上限
8
+ * returns probable prime of `min` or more and less than `max`
9
+ * @param min minimum
10
+ * @param max upper limit
11
11
  * @returns
12
12
  */
13
- declare const getRandPrimeByRange: (min: bigint, max: bigint) => bigint;
13
+ export declare const getRandPrimeByRange: (min: bigint, max: bigint) => bigint;
14
14
  /**
15
- * 指定ビットの確率的素数を返す
16
- * @param bitLength ビット長
17
- * @param fixed true: 固定長, false (デフォルト値): `length` ビット以下の可変ビット長
15
+ * returns probable prime of `bitLength` bit
16
+ * @param bitLength bit length of probable prime
17
+ * @param fixed `true`: fixed to `bitLength`, `false` (default): variable bit length of `bitLength` or under
18
18
  * @returns
19
19
  */
20
- declare const getRandPrimeByBitLength: (bitLength: number, fixed?: boolean) => bigint;
21
- export { bailliePSW, getRandPrimeByBitLength, getRandPrimeByRange };
20
+ export declare const getRandPrimeByBitLength: (bitLength: number, fixed?: boolean) => bigint;