mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: better registration ID
This commit is contained in:
@@ -76,7 +76,7 @@ export const encodeWAMessage = (message: proto.IMessage) => (
|
||||
)
|
||||
|
||||
export const generateRegistrationId = () => (
|
||||
Uint16Array.from(randomBytes(2))[0] & 0x3fff
|
||||
Uint16Array.from(randomBytes(2))[0]
|
||||
)
|
||||
|
||||
export const encodeInt = (e: number, t: number) => {
|
||||
|
||||
Reference in New Issue
Block a user