Refactored random query id generation into Glossa::createQueryId().