Fix message for exception

This commit is contained in:
Philippus Baalman 2019-08-23 00:29:27 +02:00 committed by GitHub
parent 72a108f960
commit ad54ac6f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class UUIDGenerator {
try { try {
md = MessageDigest.getInstance("SHA-1"); md = MessageDigest.getInstance("SHA-1");
} catch (NoSuchAlgorithmException nsae) { } catch (NoSuchAlgorithmException nsae) {
throw new InternalError("MD5 not supported", nsae); throw new InternalError("SHA-1 not supported", nsae);
} }
byte[] bytes = Arrays.copyOfRange(md.digest(name), 0, 16); byte[] bytes = Arrays.copyOfRange(md.digest(name), 0, 16);
bytes[6] &= 0x0f; /* clear version */ bytes[6] &= 0x0f; /* clear version */