makefs(8): Clarify the comment concerning seeding.
Avoid giving the impression makefs currently supports reproduceable builds.
This commit is contained in:
parent
17cd649f4a
commit
00b8e9fe52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300098
@ -1125,7 +1125,10 @@ ffs_write_inode(union dinode *dp, uint32_t ino, const fsinfo_t *fsopts)
|
||||
initediblk < ufs_rw32(cgp->cg_niblk, fsopts->needswap)) {
|
||||
memset(buf, 0, fs->fs_bsize);
|
||||
dip = (struct ufs2_dinode *)buf;
|
||||
/* Seeding affects reproducible builds. */
|
||||
/*
|
||||
* XXX: Time-based seeds should be avoided for
|
||||
* reproduceable builds.
|
||||
*/
|
||||
srandom(time(NULL));
|
||||
for (i = 0; i < INOPB(fs); i++) {
|
||||
dip->di_gen = random();
|
||||
|
Loading…
Reference in New Issue
Block a user