fixed order of checks
fixed null
changed eol
added define for random vs rand

Conflicts:
	CHANGELOG
	VERSION
	build.h
	configure
	configure.ac