I'm currently searching for a good way to generate a unique random number for SEPA transactions (End-to-End reference) with 27 digits in PHP. My requirements are:
- Must be unique
- Only int values, no letters
- Length of 27 digits
- Use an user id and time to make the ID unique
I've tried this solution here but this only gives me a string with letters and numbers:
md5( uniqid( mt_rand(), true ) );
Does anyone has a lightweight solution or idea?