I just fixed the RANDR problem. I'm not sure if this will work on all systems but in any case, it will probably be more stable for those systems too (object is NULL but structure member is used).
See attachment for the patch. Can anyone tell me who can check this and if its OK apply it upstream? Thank you.