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. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html