MOSHFIT avoid edge case when using random numbers in test of shape estimation.
BSONInputStreamSTL workaround for clang issue in which the stringstream class appears not to report failure or eof when performing a seek past the end of available data.