From 20727a4270233821ece49a4f89febfb80154b88f Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Sun, 23 Jun 2024 14:08:47 +0700 Subject: [PATCH] v4.0.1-rc2 - Deal with globalThis --- deno.json | 2 +- utils/helper.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/deno.json b/deno.json index b37b814..a60eb99 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@ndaidong/txtgen", - "version": "4.0.1-rc1", + "version": "4.0.1-rc2", "description": "Util for generating random sentences, paragraphs and articles in English", "homepage": "https://github.com/ndaidong/txtgen", "repository": { diff --git a/utils/helper.ts b/utils/helper.ts index b598724..77cb36f 100644 --- a/utils/helper.ts +++ b/utils/helper.ts @@ -2,8 +2,6 @@ import { adjectives, nouns, vowels } from "./sample.ts"; -const crypto = globalThis.crypto; - export const randint = (min: number = 0, max: number = 1e6): number => { const byteArray = new Uint8Array(1); crypto.getRandomValues(byteArray);