Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sbin/newfs
David Laight <dsl%netbsd.org@localhost> writes:
> Module Name: src
> Committed By: dsl
> Date: Wed Sep 3 17:09:01 UTC 2003
>
> Modified Files:
> src/sbin/newfs: mkfs.c
>
> Log Message:
> Randomise di_igen for the first 2 blocks of inodes for non-UFS2 filesystems.
> Randomise di_igen for "/" (and lost+found) for UFS2 filesystems.
Am I correct in stating you are using random() for this!? random() is
not even remotely secure enough for a security critical purpose. Its a
linear congruential generator, and not even a good one.
Perry
Home |
Main Index |
Thread Index |
Old Index