Simple Random Password in Symfony 2

From withing a Controller, do the following to get a random 12 digit alphanumeric password: