chore: import upstream snapshot with attribution
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// This entry point should only be used if no other build condition match.
|
||||
export function randomBytes(length) {
|
||||
return new Uint8Array([8, 9, 10, 11, 12, 13]);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
const crypto = require("node:crypto");
|
||||
|
||||
module.exports.randomBytes = function (length) {
|
||||
return new Uint8Array(crypto.randomBytes(length));
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
// This entry point should only be used if the build condition contains `other`.
|
||||
export function randomBytes(length) {
|
||||
return new Uint8Array([1, 2, 3, 4, 5, 6]);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export function randomBytes(length) {
|
||||
return crypto.getRandomValues(new Uint8Array(length));
|
||||
}
|
||||
Reference in New Issue
Block a user