Skip to content

Commit

Permalink
updated random_agnet function to dynamically select range
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmicoppai committed Dec 28, 2023
1 parent d624048 commit 0dfbc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils/user_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def get_random_agent():
return user_agents[random.randint(0, 9999)]
return user_agents[random.randint(0, len(user_agents)-1)]


user_agents = [
Expand Down

0 comments on commit 0dfbc01

Please sign in to comment.