+
+/*************************************************************************/
+
+/**
+ * \brief This function fills the given bock with length random bytes
+ * @return a random byte
+ */
+
+void fillBlockRandom(void* block, unsigned length){
+ while(length>RANDOMBLOCK_SIZE){
+ getRandomBlock(block);
+ block = (uint8_t*)block + RANDOMBLOCK_SIZE;
+ length -= RANDOMBLOCK_SIZE;
+ }
+ while(length){
+ *((uint8_t*)block) = getRandomByte();
+ block= (uint8_t*)block +1; --length;
+ }
+}