From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- server/helpers/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers/utils.ts') diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts index 4c6f200f8..7a4c781cc 100644 --- a/server/helpers/utils.ts +++ b/server/helpers/utils.ts @@ -1,6 +1,6 @@ import { ResultList } from '../../shared' import { ApplicationModel } from '../models/application/application' -import { execPromise, execPromise2, pseudoRandomBytesPromise, sha256 } from './core-utils' +import { execPromise, execPromise2, randomBytesPromise, sha256 } from './core-utils' import { logger } from './logger' import { join } from 'path' import { Instance as ParseTorrent } from 'parse-torrent' @@ -14,7 +14,7 @@ function deleteFileAsync (path: string) { } async function generateRandomString (size: number) { - const raw = await pseudoRandomBytesPromise(size) + const raw = await randomBytesPromise(size) return raw.toString('hex') } -- cgit v1.2.3