i have unit tests, written in java, that generates some data and saves it in DB. once in a while, the machine performance is slow due to lots of data in this DB, so we need to delete this data once in a while. this data is need for internal proccess so it needs to be saved for a while. in addition, there is lots of duplicated records. I thought to generate a hashed primary key, from my unit tests suit, before saving this data to avoid duplications. the PK needs to be 64 bit (java's long data type). I can't find any ways to generate this type of hashed PK in 64 bit as pure positive number. java's built in method "Objects.hash()" returns int. I need it to be long type.
any help will be appriciated!