Skip to content

fix: crypto.getRandomValues is not available in old Node versions#19237

Merged
sapphi-red merged 1 commit intov4from
fix/crypto-get-random-values-are-not-available-until-newer-node
Jan 20, 2025
Merged

fix: crypto.getRandomValues is not available in old Node versions#19237
sapphi-red merged 1 commit intov4from
fix/crypto-get-random-values-are-not-available-until-newer-node

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Jan 20, 2025

Description

import crypto from 'node:crypto';

console.log(crypto.getRandomValues) // undefined on Node 16.20.1

refs #19236

@netlify
Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for vite-docs-v4 ready!

Name Link
🔨 Latest commit 91f38b9
🔍 Latest deploy log https://app.netlify.com/sites/vite-docs-v4/deploys/678e25b57b053d00080fffe7
😎 Deploy Preview https://deploy-preview-19237--vite-docs-v4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sapphi-red sapphi-red merged commit f4d3c46 into v4 Jan 20, 2025
12 of 20 checks passed
@sapphi-red sapphi-red deleted the fix/crypto-get-random-values-are-not-available-until-newer-node branch January 20, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant