-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, 2018-10-09 at 13:56 +0200, Yves-Alexis Perez wrote:
> On Tue, 2018-10-09 at 08:15 +0200, Yves-Alexis Perez wrote:
> > Inded I'd say it's the same cause (your system doesn't have enough
> > entropy).
> > I'll try to find the Xorg bug.
> > 
> So it looks to me like #898088 but it's supposedly fixed. Please double-
> check
> on your side.

Some more investigation:

- - lightdm creates the cookie by itself, using g_random_int() [1]
- - g_random_int() is provided by glib, and calls by itself g_rand_int() with
the global random object provided via get_global_random() [2]
- - if needed, get_global_random() initialize the object via g_rand_new() [3]
- - g_rand_new() seeds using /dev/urandom [4]

Reading from /dev/urandom shouldn't block, so I'm a bit confused at your issue
right now.

[1] 
https://sources.debian.org/src/lightdm/1.26.0-3/src/x-authority.c/?hl=63#L63
[2] https://sources.debian.org/src/glib2.0/2.58.1-2/glib/grand.c/?hl=650#L650
[3] https://sources.debian.org/src/glib2.0/2.58.1-2/glib/grand.c/?hl=621#L622
[4] https://sources.debian.org/src/glib2.0/2.58.1-2/glib/grand.c/?hl=231#L218
- -- 
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAlu8nCAACgkQ3rYcyPpX
RFvkSwf/WQ2c6wzPRhQWEoR2ts3iqRX6XB35L14O67PXTP1swHYDQJULivJeas6T
mK0gLVcrYpPIpJ1SrJCwxhk6xmcvsIukn+YvrEXod+Rvp2gO3dhaoHL4f/j9bfWr
o0G6H/f6DOg2nBeRlz+Xa4oQSMcLDGDI2q9iFbvi1FvyMr8LfWsNUTEj/966mj2o
YHDZqeZqHXLNmLLaO11z+8w0/m3AiZtCbsTCiWWoCPX5m9IOlwtgBeNPYivkFYhr
raIUTlFaJRa6BfQIDfJHNieQw/7f6547eN72zVw/hw+HzgJpIhtKbCHLa2wzUccj
HHV7H6iX8Mmo8zmqu52iVCNeOaYcAg==
=RyRD
-----END PGP SIGNATURE-----

Reply via email to