[PATCH v3] Seed random generator in main()

Robin McCorkell rmccorkell at karoshi.org.uk
Tue Jun 23 14:19:35 MDT 2015


While a decision is being made on the random number generation stuff,
the issue that this patch fixes remains a problem. At the moment,
shuffling for MSDFS and DC referrals is woefully poor, essentially being
the same in a given second. In addition, the built-in libc RNG is seeded
every request, which is really inefficient.

I know this patch isn't the way we ultimately want to go, but it does
fix the issue at hand, so reviews please? :)

Robin McCorkell

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150623/69f03848/attachment.pgp>


More information about the samba-technical mailing list