helper functions to make testing easier
made random data deterministic