Update module_random / fix controller startup

Uses the latest module_random.
Fixes the case where the connection is attempted before the entity has been detected. This causes lost synchronisation.