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

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:1:   /* nettle.cmod -*- c -*- */ - /* $Id: nettle.cmod,v 1.52 2009/07/05 13:57:44 grubba Exp $ */ + /* $Id: nettle.cmod,v 1.53 2009/07/05 14:09:20 grubba Exp $ */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   /* For this_object() */   #include "object.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h"   
pike.git/src/post_modules/Nettle/nettle.cmod:132:    *! Note that the value returned by this function is only genererated    *! when @[seed()] is called. For a seed that takes later incremental    *! seeding into account, consider using @expr{random_string(32)@}    *! instead.    *!    *! @seealso    *! @[seed()], @[random_string()]    */    PIKEFUN string get_seed()    optflags OPT_EXTERNAL_DEPEND; -  rawtype tDeprecated(tFunc(tNone, tstr8)); +  rawtype tDeprecated(tFunc(tNone, tStr8));    {    if( !yarrow256_is_seeded(&THIS->ctx) )    Pike_error("Random generator not seeded.\n");      #ifdef HAVE_STRUCT_YARROW256_CTX_SEED_FILE    RETURN make_shared_binary_string(THIS->ctx.seed_file,    YARROW256_SEED_FILE_SIZE);   #else    REF_RETURN THIS->seed_file;   #endif /* HAVE_STRUCT_YARROW256_CTX_SEED_FILE */