import time


def gen_test_packet(sender="server", size=3000):
    """
    Generates a simple test packet, containing a decent amount of data,
    as well as the timestamp of generation and the sender.
    """
    # Packet containing 'size' floats
    data = [0.0 if i % 2 == 0 else 1.0 for i in range(size)]
    timestamp = "{}".format(time.time())
    packet = {"data": data, "timestamp": timestamp, "sender": sender}
    return packet