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

Karel Zak
2013-01-10T10:55:32Z

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));