Skip to content

Commit

Permalink
feat: Make the random more random
Browse files Browse the repository at this point in the history
B1ue-Dev committed Aug 31, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 86432cb commit 69abb93
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/exts/fun/rate.py
Original file line number Diff line number Diff line change
@@ -76,17 +76,11 @@ async def clownrate(self, ctx: HybridContext, user: str = None) -> None:

if not user:
user = ctx.user.username
random.seed(
str(ctx.user.id)
+ str(int(time.time() / 300))
)
random.seed(str(ctx.user.id) + str(int(time.time() / 300)))
else:
_user = get_user_id(user)
if _user:
random.seed(
str(_user)
+ str(int(time.time() / 300))
)
random.seed(str(_user) + str(int(time.time() / 300)))
perc: int = random.choice(range(0, 100))

embed = interactions.Embed(

0 comments on commit 69abb93

Please sign in to comment.