All-optical pseudo noise sequence generator using a micro-ring resonator