pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:819:    get_all_args("random_string",args,"%+",&len);    ret = begin_shared_string(len);       /* Note: Assumes pike_string->str is aligned on a 4 byte boundary    * (it is, currently)    */    str = (unsigned INT64 *)ret->str;       while( (e+=sizeof(INT64)) <= len )    { -  str[0] = my_rand64(0); +  str[0] = my_rand64(0xffffffffffffffff);    str++;    }       for(e-=sizeof(INT64);e<len;e++)    { -  ret->str[e] = (char)my_rand(0); +  ret->str[e] = (char)my_rand(0xffffffff);    }       pop_n_elems(args);    push_string(end_shared_string(ret));   }      /*! @decl void random_seed(int seed)    *!    *! This function sets the initial value for the random generator.    *!