Skip to main content
Module

x/typeorm/src/util/RandomGenerator.ts>RandomGenerator

Forked from https://github.com/typeorm/typeorm
Latest
class RandomGenerator
import { RandomGenerator } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/util/RandomGenerator.ts";

Static Methods

sha1(str: string)

discuss at: http://locutus.io/php/sha1/ original by: Webtoolkit.info (http://www.webtoolkit.info/) improved by: Michael White (http://getsprink.com) improved by: Kevin van Zonneveld (http://kvz.io) input by: Brett Zamir (http://brett-zamir.me) note 1: Keep in mind that in accordance with PHP, the whole string is buffered and then note 1: hashed. If available, we'd recommend using Node's native crypto modules directly note 1: in a steaming fashion for faster and more efficient hashing example 1: sha1('Kevin van Zonneveld') returns 1: '54916d2e62f65b3afa6e192e6a601cdbe5cb5897'

uuid4(): string

RFC4122 compliant UUID v4 generator.