Skip to content

Commit

Permalink
Make (and) first
Browse files Browse the repository at this point in the history
  • Loading branch information
SunFulong authored Apr 13, 2024
1 parent 77784a2 commit eeb977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autobahn/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def rid():
:returns: A random integer ID.
:rtype: int
"""
return struct.unpack("@Q", os.urandom(8))[0] & _WAMP_ID_MASK + 1
return (struct.unpack("@Q", os.urandom(8))[0] & _WAMP_ID_MASK) + 1


# noinspection PyShadowingBuiltins
Expand Down

0 comments on commit eeb977e

Please sign in to comment.