Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!midway!oddjob!matt From: matt@group-w.uchicago.edu (Matt Crawford) Newsgroups: comp.mail.sendmail Subject: Re: sendmail-5.65 incorrectly handles MX records with equal precedence Keywords: domain.c getmxrr() MX-preference rand() Message-ID: <1990Oct18.180156.6282@midway.uchicago.edu> Date: 18 Oct 90 18:01:56 GMT References: <26169.271b8651@kuhub.cc.ukans.edu> <1990Oct17.135603.27002@rodan.acs.syr.edu> <3924@awdprime.UUCP> Sender: news@midway.uchicago.edu (News Administrator) Reply-To: matt@group-w.uchicago.edu (Matt Crawford) Organization: Replace me with your organization Lines: 9 In-Reply-To: jeffe@sandino.austin.ibm.com (Peter Jeffe 512.823.4091) ) The only way I can see around this "some hosts are more equal than others" ) scenario is to have an additional sort key that is set to a random number, ) but I'm not sure it's worth the trouble. Any other ideas/comments? The easiest thing to do would be to multply all MX preference values by some number N, say 256, and add a random number in [0, N-1] to each. Just make sure you can't overflow and everything will be groovy. ________________________________________________________ Matt Crawford matt@oddjob.uchicago.edu