Skip to content

Commit

Permalink
Generate correct UID
Browse files Browse the repository at this point in the history
  • Loading branch information
brodokk committed Sep 30, 2023
1 parent 3eb0f4e commit 844c5eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resonitepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
Resonite API.
"""

import os
import dataclasses
import json
import logging
from datetime import datetime
from uuid import uuid4
from hashlib import sha256
from os import path as OSpath
from typing import Dict, List
from urllib.parse import ParseResult, urlparse
Expand Down Expand Up @@ -79,7 +80,7 @@ class Client:
secretMachineIdHash: str = None
secretMachineIdSalt: str = None
session: Session = Session()
session.headers['UID'] = "91F152383B7698EB38E9133B318FB97C849470053D0032FB659B0483189CB71A"
session.headers['UID'] = sha256(os.urandom(16)).hexdigest().upper()

@property
def headers(self) -> dict:
Expand Down

0 comments on commit 844c5eb

Please sign in to comment.