On 22.03.2017 01:48, Grazvydas Ignotas wrote:
On Wed, Mar 22, 2017 at 1:59 AM, Timothy Arceri <tarc...@itsqueeze.com> wrote:
Otherwise for apps that don't seed the regular rand() we will always
remove old cache entries from the same dirs.

V2: assume bits returned by rand are independent uniformly distributed
    bits and grab our hex value without taking the modulus of the whole
    value, this also fixes a bug where 'f' was always missing.

I wonder if this particular random generator is any good (some sort of
LFSR?)

It is definitely good enough for what we're trying to do here.


, but from quick testing it doesn't seem to have stuck bits at
least and seeding works, so probably be good enough for dir selection
purposes. For the series:

Reviewed-by: Grazvydas Ignotas <nota...@gmail.com>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to