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:
parent
d9e6648b33
commit
2b1c0100bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue