Skip to content

Commit

Permalink
Fixed Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aahan0511 committed Feb 1, 2025
1 parent 45168f8 commit 427dc75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ There is no data used/processed except for your score, time and block, which is

| Version | Supported |
| ------- | ------------------ |
| v1.0.0 ||

| v1.0.0 ||
| v1.0.1 ||
| v1.0.2 ||

## Reporting a Vulnerability
Make a new issue for reporting a vulnerability, or make a pull request if you manage to fix it.
5 changes: 0 additions & 5 deletions secrypto/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ def __init__(self, alterations: int=3, seed: int=None) -> None:
self.random = random.Random()
self.seed = seed if seed else random.randint(0, 459922447758524356182925764587827621141488840828118402656326161300092550814154169410974551151741342344127012866971685861569595974258231770341461580733108476599183294829765249938892584810534737088865661242776026257499024746623501990701475686532591213816507116638257415067490833048892511487438018462822612226031207223486691239618719240627962833176749553105880797007673090769950644282266010558827324359739061868337774780664998803820496086793746446790416139656857790517179354882587563230448301576931681807946837454087273822384100046281757923576878974402809990538991955149303112724632964067174923170858605452280648238843045014075953316851794855420797216585372331492741614580466419054737493490833569210739066705209720832000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)

self.__seeded = True if seed else False
self.random.seed(self.seed)

self.number = alterations
Expand Down Expand Up @@ -63,12 +62,8 @@ def __init__(self, alterations: int=3, seed: int=None) -> None:
self.key = self.regenerate()

def regenerate(self):
from random import randint

key = {}
if not self.__seeded:
self.seed = randint(0, 459922447758524356182925764587827621141488840828118402656326161300092550814154169410974551151741342344127012866971685861569595974258231770341461580733108476599183294829765249938892584810534737088865661242776026257499024746623501990701475686532591213816507116638257415067490833048892511487438018462822612226031207223486691239618719240627962833176749553105880797007673090769950644282266010558827324359739061868337774780664998803820496086793746446790416139656857790517179354882587563230448301576931681807946837454087273822384100046281757923576878974402809990538991955149303112724632964067174923170858605452280648238843045014075953316851794855420797216585372331492741614580466419054737493490833569210739066705209720832000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
self.random.seed(self.seed)

characters = [
'0', '1', '2', '3', '4', '5', '6', '7',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

setup(
name='secrypto',
version='1.0.1',
version='1.0.2',
packages=find_packages(),
install_requires=[],
author='Aahan Salecha',
Expand Down

0 comments on commit 427dc75

Please sign in to comment.