Skip to content

Commit

Permalink
Generate random IRK in security_test
Browse files Browse the repository at this point in the history
  • Loading branch information
zxzxwu authored and SilverBzH committed Jan 18, 2024
1 parent 04e51f4 commit c16ea14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avatar/cases/security_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import avatar
import itertools
import logging
import secrets

from avatar import BumblePandoraDevice
from avatar import PandoraDevice
Expand Down Expand Up @@ -103,6 +104,7 @@ async def setup_class(self) -> None:
device.config.setdefault('address_resolution_offload', True)
device.config.setdefault('classic_enabled', True)
device.config.setdefault('classic_ssp_enabled', True)
device.config.setdefault('irk', secrets.token_hex(16))
device.config.setdefault(
'server',
{
Expand Down

0 comments on commit c16ea14

Please sign in to comment.