@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
16 lines (15 loc) • 594 B
TypeScript
import type { string_token } from '../../types/typeAliases';
/**
* Generates random token
*
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
* Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
*
* @private internal helper function
* @returns secure random token
*/
export declare function $randomToken(randomness: number): string_token;
/**
* TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
*/