[lxc-devel] [PATCH] implement backend drivers and container clone API (v2)

S.Çağlar Onur caglar at 10ur.org
Wed Apr 24 15:51:22 UTC 2013


Hi Serge,

[resending as list rejected my first mail due to its size]

On Wed, Apr 24, 2013 at 9:26 AM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:
>
> +static void new_hwaddr(char *hwaddr)
> +{
> +       snprintf(hwaddr, 18, "00:16:3e:%02x:%02x:%02x",
> +                       rand() % 255, rand() % 255, rand() % 255);
> +}
>

I believe we need to call srand here otherwise it will always give the same
set of numbers with the same sequence

-- 
S.Çağlar Onur <caglar at 10ur.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130424/27055017/attachment.html>


More information about the lxc-devel mailing list