summaryrefslogtreecommitdiff
path: root/tests/integration_tests/__init__.py
blob: 81f9b02f71249fc5263ea40a4ad16274d0b52371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import random


def random_mac_address() -> str:
    """Generate a random MAC address.

    The MAC address will have a 1 in its least significant bit, indicating it
    to be a locally administered address.
    """
    return "02:00:00:%02x:%02x:%02x" % (
        random.randint(0, 255),
        random.randint(0, 255),
        random.randint(0, 255),
    )