@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 +1 -1
- package/dist/baillie-psw.d.ts +12 -13
- package/dist/bundle.js +429 -311
- package/dist/fraction.d.ts +24 -13
- package/dist/main.d.ts +1 -2
- package/dist/math.d.ts +11 -11
- package/dist/queue.d.ts +15 -2
- package/dist/random.d.ts +67 -0
- package/dist/u8arr-ext.d.ts +3 -7
- package/dist/util.d.ts +27 -13
- package/package.json +3 -2
- package/dist/executer.d.ts +0 -18
- package/dist/pcg-minimal.d.ts +0 -26
package/README.md
CHANGED
package/dist/baillie-psw.d.ts
CHANGED
|
@@ -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
|
|
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;
|