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

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:67:    *! internal state of 256 bits.    */   PIKECLASS Yarrow   program_flags PROGRAM_CLEAR_STORAGE;   {    CVAR struct yarrow256_ctx ctx;    CVAR struct yarrow_source *sources;       DECLARE_STORAGE;    -  /*! @decl void create(void|int sources) +  /*! @decl void create(void|int(0..) sources)    *! The number of entropy sources that will feed entropy to the    *! random number generator is given as an argument to Yarrow    *! during instantiation.    *! @seealso    *! @[update]    */ -  PIKEFUN void create(void|int(1..) arg) +  PIKEFUN void create(void|int(0..) arg)    flags ID_PROTECTED;    {    INT32 num = 0;       if(arg) {    num = arg->u.integer;    if(num < 0)    Pike_error("Invalid number of sources.\n");    free (THIS->sources);    if( num > 0 )