fix -pedantic warnings and add rand()
aliasID : good try
aliasID : del aidPtr
aliasID : return struct aliasID
aliasID : del some printfs