pike.git / src / post_modules / Nettle / nettle.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:74:    THIS->sources = NULL;    }    yarrow256_init(&THIS->ctx, num, THIS->sources);    }       /*! @decl Yarrow seed(string(0..255) data)    *!    *! The random generator needs to be seeded before it can be used.    *! The seed must be at least 32 characters long. The seed could be    *! stored from a previous run by inserting the value returned from -  *! @[get_seed]. +  *! previous @[random_string] call.    *!    *! @returns    *! Returns the called object.    *! @seealso -  *! @[min_seed_size], @[get_seed], @[is_seeded] +  *! @[min_seed_size], @[is_seeded]    */    PIKEFUN object seed(string(0..255) data)    optflags OPT_SIDE_EFFECT;    {    if(data->len < YARROW256_SEED_FILE_SIZE)    Pike_error("Seed must be at least %d characters.\n",    YARROW256_SEED_FILE_SIZE);       NO_WIDE_STRING(data);    yarrow256_seed(&THIS->ctx, data->len, STR0(data));