1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 17:36:23 +00:00

Correct the buffer size

This commit is contained in:
Grzesiek11 2024-08-02 13:54:19 +02:00
parent d9e6648b33
commit 2b1c0100bf
No known key found for this signature in database
GPG key ID: 4A5445FB68CDB5C4

View file

@ -36,7 +36,7 @@ function hash(data: ArrayBuffer) {
// Calculate a CSS color string based on the user ID
function calculateNameColorForUser(id: bigint) {
const idBuffer = new ArrayBuffer(16);
const idBuffer = new ArrayBuffer(8);
{
const idView = new DataView(idBuffer);
idView.setBigUint64(0, id);