Feature/firmware/random

Fix for #230