package com.google.android.gms.internal.p002firebaseauthapi; import com.google.common.base.Ascii; import com.google.common.primitives.UnsignedBytes; import java.security.SecureRandom; /* loaded from: classes2.dex */ public final class zzhj { public static int zza() { SecureRandom secureRandom = new SecureRandom(); byte[] bArr = new byte[4]; int i = 0; while (i == 0) { secureRandom.nextBytes(bArr); i = ((bArr[0] & Ascii.DEL) << 24) | ((bArr[1] & UnsignedBytes.MAX_VALUE) << 16) | ((bArr[2] & UnsignedBytes.MAX_VALUE) << 8) | (bArr[3] & UnsignedBytes.MAX_VALUE); } return i; } public static final zzqv zzb(String str) { byte[] bArr = new byte[str.length()]; for (int i = 0; i < str.length(); i++) { char charAt = str.charAt(i); if (charAt < '!' || charAt > '~') { throw new zzhi("Not a printable ASCII character: " + charAt); } bArr[i] = (byte) charAt; } return zzqv.zzb(bArr); } }