Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyrogram/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def load_plugins(self):
self.name, type(handler).__name__, name, group, module_path))

count += 1
except Exception:
except AttributeError:
pass
else:
for path, handlers in include:
Expand Down
4 changes: 2 additions & 2 deletions pyrogram/crypto/prime.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

from random import randint
from secrets import randbelow

CURRENT_DH_PRIME = int(
"C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F"
Expand Down Expand Up @@ -47,7 +47,7 @@ def decompose(pq: int) -> int:
if pq % 2 == 0:
return 2

y, c, m = randint(1, pq - 1), randint(1, pq - 1), randint(1, pq - 1)
y, c, m = randbelow(pq - 1) + 1, randbelow(pq - 1) + 1, randbelow(pq - 1) + 1
g = r = q = 1
x = ys = 0

Expand Down