Re: [PATCH 2/4] ipcmk: remove unnecessary create_key() function

Karel Zak
2013-01-24T15:32:32Z

On Thu, Jan 10, 2013 at 11:19:55AM +0100, Karel Zak wrote:
> On Wed, Jan 09, 2013 at 07:36:54PM +0000, Sami Kerola wrote:
> > static int create_shm(size_t size, int permission)
> > {
> > - key_t key = create_key();
> > + key_t key = random();
>
> we already have random_get_bytes() in randutils.c, it seems better
> than introduce seed_random() and use random().
>
> random_get_bytes(&key, sizeof(key));

Implemented.