mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
81 - Ensuring Uniqueness
This commit is contained in:
@@ -6,6 +6,8 @@ class RandomOrderConfirmationNumberGenerator implements OrderConfirmationNumberG
|
||||
{
|
||||
public function generate()
|
||||
{
|
||||
return str_repeat('A', 24);
|
||||
$pool = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';
|
||||
|
||||
return substr(str_shuffle(str_repeat($pool, 24)), 0, 24);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user