Fix GenerateId giving the random function itself instead of result

Caused new sketch/project to fail to load, as the identifier was bogus.
Introduced in b68a2e7e4813e38ce6ca3175b8d128eb56fda724