@@ -59,49 +59,28 @@ import elide.vm.annotations.Polyglot
5959
6060 /* *
6161 * ## Crypto: randomInt
62+ * Public overload of [randomInt].
6263 * Generates a cryptographically secure random integer between the specified `min` (inclusive) and `max` (exclusive) values.
63- *
64- * See also: [Node Crypto API: `randomInt`](https://nodejs.org/api/crypto.html#cryptorandomintmin-max-callback)
65- *
6664 * @param min Lower bound (inclusive)
6765 * @param max Upper bound (exclusive)
6866 * @param callback Callback to receive the generated safe integer or an error.
69- * @return Unit
7067 */
7168 @Polyglot public fun randomInt (min : Value , max : Value , callback : Value )
7269
7370 /* *
7471 * ## Crypto: randomInt
72+ * Public overload of [randomInt].
7573 * Generates a cryptographically secure random integer between the specified `min` (inclusive) and `max` (exclusive) values.
76- *
77- * See also: [Node Crypto API: `randomInt`](https://nodejs.org/api/crypto.html#cryptorandomintmin-max-callback)
78- *
79- * @param max
80- * @param callback
81- * @return A randomly generated safe integer between `0` (inclusive) and `max` (exclusive) or nothing if a callback was provided.
82- */
83- @Polyglot public fun randomInt (max : Value , callback : Value ? )
84-
85- /* *
86- * ## Crypto: randomInt
87- * Generates a cryptographically secure random integer between the specified `min` (inclusive) and `max` (exclusive) values.
88- *
89- * See also: [Node Crypto API: `randomInt`](https://nodejs.org/api/crypto.html#cryptorandomintmin-max-callback)
90- *
9174 * @param min Lower bound (inclusive)
9275 * @param max Upper bound (exclusive)
93- * @return A randomly generated safe integer between `min` (inclusive) and `max` (exclusive).
9476 */
9577 @Polyglot public fun randomInt (min : Value , max : Value ): Long
9678
9779 /* *
9880 * ## Crypto: randomInt
99- * Generates a cryptographically secure random integer between `0` (inclusive) and the specified `max` (exclusive) value.
100- *
101- * See also: [Node Crypto API: `randomInt`](https://nodejs.org/api/crypto.html#cryptorandomintmin-max-callback)
102- *
81+ * Public overload of [randomInt].
82+ * Generates a cryptographically secure random integer between the specified `min` (inclusive) and `max` (exclusive) values.
10383 * @param max Upper bound (exclusive)
104- * @return A randomly generated safe integer between `0` (inclusive) and `max` (exclusive).
10584 */
10685 @Polyglot public fun randomInt (max : Value ): Long
10786}
0 commit comments