romfs: local rand implementation, improve consistency between sections, add comments