Updated rand_password to be more secure.

Signed-off-by: ziycon <ziycon.eire@gmail.com>