App/Mobile Apps/android/Project/app/src/main/assets/public/default~firebase-messaging~login-login-module~signup-signup-module~student-ec-form-ec-form-module~st~88bf8aaa-es5.js
/**
     * Generates a new FID using random values from Web Crypto API.
     * Returns an empty string if FID generation fails for any reason.
     */
Generates a new FID using random values from Web Crypto API.
Returns an empty string if FID generation fails for any reason.
Generates a new FID using random values from Web Crypto API . Returns an empty string if FID generation fails for any reason .
function generateFid() {
      try {
        var fidByteArray = new Uint8Array(17);
        var crypto_1 = self.crypto || self.msCrypto;
        crypto_1.getRandomValues(fidByteArray); 
        fidByteArray[0] = 112 + fidByteArray[0] % 16;
        var fid = encode(fidByteArray);
        return VALID_FID_PATTERN.test(fid) ? fid : INVALID_FID;
      } catch (_a) {
        return INVALID_FID;
      }
    }
function generateFid ( ) { try { var fidByteArray = new Uint8Array ( 17 ) ; var crypto_1 = self . crypto || self . msCrypto ; crypto_1 . getRandomValues ( fidByteArray ) ; fidByteArray [ 0 ] = 112 + fidByteArray [ 0 ] % 16 ; var fid = encode ( fidByteArray ) ; return VALID_FID_PATTERN . test ( fid ) ? fid : INVALID_FID ; } catch ( _a ) { return INVALID_FID ; } }
Generates a new FID using random values from Web Crypto API.
Generates a new FID using random values from Web Crypto API .
// A valid FID has exactly 22 base64 characters, which is 132 bits, or 16.5 // bytes. our implementation generates a 17 byte array instead. // Replace the first 4 random bits with the constant FID header of 0b0111. // FID generation errored