pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:2324:    *!    *! @throws    *! May throw errors on unexpected state.    */    PIKEFUN string(8bit) random_string(int(0..) len)    {    struct pike_string *ret;    char *str;       if( !len ) -  RETURN empty_pike_string; +  REF_RETURN empty_pike_string;    if( len<0 )    Pike_error("Bad argument 1 to random_string(). Expected int(0..).\n");      #ifdef __NT__    if(!crypto_handle)    {    if( !CryptAcquireContext(&crypto_handle, 0, 0, PROV_RSA_FULL,    CRYPT_VERIFYCONTEXT|CRYPT_SILENT) )    Pike_error("Failed to set up Crypto Service.\n");    }