yaffs Added more tests to direct/timothy_tests/mirror_tests
[yaffs2.git] / direct / timothy_tests / mirror_tests / lib.c
index 0d1443050763c4c2de188c00e65b79dfbd1c9581..1a9d6ac4f3ee44198c011a63c2d0962ad4af7824 100644 (file)
@@ -40,7 +40,7 @@ void display_error(void)
 
 void  generate_random_string(char *ptr,int length_of_str){
        unsigned int x;
-       unsigned int length=((rand() %length_of_str)+1);        /*creates a int with the number of charecters been between 1 and 51*/           
+       unsigned int length=((rand() %(length_of_str-3))+3);    /*creates a int with the number of charecters been between 1 and 51*/           
        char letter='\0';
        strcpy(ptr,"");
        //printf("generating string\n");