bug fixes in randomBlob