<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi <br>We all know rrset-order{order random;} option, I search bind code and find the part which deal with this <br>*****************************************************<br>for (i = 0; i < count; i++) {<br> dns_rdata_t rdata;<br> isc_uint32_t val;<br><br> isc_random_get(&val);<br> choice = i + (val % (count - i));<br> rdata = shuffled[i];<br> shuffled[i] = shuffled[choice];<br> shuffled[choice] = rdata;<br> if (order != NULL)<br> sorted[i].key = (*order)(&shuffled[i],<br> order_arg);<br> else<br> sorted[i].key = 0; /* Unused */<br> sorted[i].rdata = &shuffled[i];<br> }<br>*****************************************************<br><br>which is located in /bind/lib/dns/rdataset.c <br><br>Could anybody help me to understand this piece of code, thank for your time <br><br>Nidal<br><br> </div></body>
</html>