Quickly generate a pseudo random token in PHP

public function generate_token($len=32)
{
    return substr(str_shuffle("0123456789"
                             ."abcdefghijklmnopqrstuvwxyz"
                             ."ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                             ."0123456789"
                             ."abcdefghijklmnopqrstuvwxyz"
                             ."ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                             ), 0, $len);
}