diff --git a/lib/make/crypto.js b/lib/make/crypto.js index 4e0ab5b..3696afe 100644 --- a/lib/make/crypto.js +++ b/lib/make/crypto.js @@ -16,7 +16,7 @@ class crypto extends make { ] } static randomKeyFormat () { - return random.item(this.keyFormats) + return random.item(crypto.keyFormats) } static get keyTypes () { @@ -27,7 +27,7 @@ class crypto extends make { ] } static randomKeyType () { - return random.item(this.keyTypes) + return random.item(crypto.keyTypes) } static get keyUsages () { @@ -44,7 +44,7 @@ class crypto extends make { } static randomKeyUsage () { - return random.subset(this.keyUsages) + return random.subset(crypto.keyUsages) } static get curves () { @@ -56,7 +56,7 @@ class crypto extends make { } static randomCurve () { - return random.item(this.curves) + return random.item(crypto.curves) } static get jwkUsages () { @@ -67,7 +67,7 @@ class crypto extends make { } static randomJwkUsage () { - return random.subset(this.keyUsages) + return random.subset(crypto.keyUsages) } static get jwkKeyTypes () { @@ -79,7 +79,7 @@ class crypto extends make { } static randomJwkKeyType () { - return random.subset(this.jwkKeyTypes) + return random.subset(crypto.jwkKeyTypes) } static get algorithmNames () { @@ -181,11 +181,11 @@ class crypto extends make { } static randomAlgorithmName (method) { - return random.item(this.algorithmNames[method]) + return random.item(crypto.algorithmNames[method]) } static randomDigestName () { - return random.item(this.algorithmNames.digest) + return random.item(crypto.algorithmNames.digest) } static get algorithms () {