<div dir="ltr">Hi Serge,<br><div class="gmail_extra"><br></div><div class="gmail_extra">[resending as list rejected my first mail due to its size]<br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 9:26 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


+static void new_hwaddr(char *hwaddr)<br>
+{<br>
+       snprintf(hwaddr, 18, "00:16:3e:%02x:%02x:%02x",<br>
+                       rand() % 255, rand() % 255, rand() % 255);<br>
+}<br></blockquote><div><br></div><div><div style="color:rgb(0,0,0);font-family:arial,sans-serif">I believe we need to call srand here otherwise it will always give the same set of numbers with the same sequence</div></div>

<div><br></div></div>-- <br>S.Çağlar Onur <<a href="mailto:caglar@10ur.org">caglar@10ur.org</a>>
</div></div>