pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1923:    push_int(8);    apply_current(f_RandomInterface_random_string_fun_num, 1);    if( TYPEOF(Pike_sp[-1]) != T_STRING ||    Pike_sp[-1].u.string->len != 8 )    Pike_error("Illegal return value from random_string.\n");   #if PIKE_BYTEORDER == 1234    /* Little endian. */    THIS->int_buffer = ((INT64 *)Pike_sp[-1].u.string->str)[0];   #else    /* Big endian. */ -  for (int i = 0; i < 8; i++) { +  { +  int i; +  for (i = 0; i < 8; i++) {    ((p_wchar0 *)&THIS->int_buffer)[i] = STR0(Pike_sp[-1].u.string)[7-i];    } -  +  }   #endif    THIS->buffer_bits = 64;    pop_stack();    }       /* Generates a number 0<=c<limit from random bits taken from the    int_buffer. Follows the NIST SP800-90A method for converting bit    sequences into bound numbers, described in section B.5.1.1, and    summarized as "throw away attempts that are too large". */    static INT_TYPE read_int(INT_TYPE limit)