]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs(1): use all the random(3) range.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Tue, 17 May 2016 18:20:33 +0000 (18:20 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Tue, 17 May 2016 18:20:33 +0000 (18:20 +0000)
commit40d39b4bf57c960f0e41a3cfacac3433eb45f4ec
tree772e061f693e114f42f4c8feca14787d8bbb0f86
parentd71896a76a83f5fa5dbbdd021631a8a8244fc1fd
makefs(1): use all the random(3) range.

The generation number is uint32_t so we can fit the complete range
of random(3). We could have used arc4random() but the result would
be unpredictable and it would prohibit reproducible builds.

While here add a comment where seeding is done: this affects
reproducible builds and might have to be re-visited to use a
release dependent value.

MFC after: 2 weeks
usr.sbin/makefs/ffs.c