MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / makeRandomHex

Function makeRandomHex

utils/s3.ts:88–92  ·  view source on GitHub ↗
(length = 16)

Source from the content-addressed store, hash-verified

86}
87
88function makeRandomHex(length = 16): string {
89 const bytes = new Uint8Array(length);
90 crypto.getRandomValues(bytes);
91 return Array.from(bytes, b => b.toString(16).padStart(2, "0")).join("");
92}
93
94export function isS3Configured(): boolean {
95 const { s3Endpoint, s3Bucket, s3Region, s3AccessKeyId, s3SecretAccessKey } = settings.store as S3Store;

Callers 1

uploadToS3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected