kernl API
    Preparing search index...

    Function randomUuidFallback

    • Add crypto.randomUUID to a scope that lacks it, built on crypto.getRandomValues, which browsers expose outside secure contexts.

      Self-contained so renderRandomUuidFallbackScript can serialise it into an applet's srcdoc: an opaque-origin frame inherits its parent's insecure context, and the applet runtime calls randomUUID per request.

      Parameters

      • scope: CryptoScope

        The global to patch, usually window.

      Returns boolean

      Whether it added the function.

      randomUuidFallback(globalThis); // false where randomUUID already exists