aboutsummaryrefslogtreecommitdiff
path: root/src/include/plibc.h
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2009-09-24 19:19:28 +0000
committerNils Durner <durner@gnunet.org>2009-09-24 19:19:28 +0000
commit76c024311489ede1bca79cf647e568dde70d8a48 (patch)
tree98a71198d2a7d389b0f193144b04d3008b10cc68 /src/include/plibc.h
parent01abf4826614131fe2eb9a0c1a968bc61e5775be (diff)
downloadgnunet-76c024311489ede1bca79cf647e568dde70d8a48.tar.gz
gnunet-76c024311489ede1bca79cf647e568dde70d8a48.zip
use correct PRNG initializer
Diffstat (limited to 'src/include/plibc.h')
-rw-r--r--src/include/plibc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/plibc.h b/src/include/plibc.h
index 51d78fc7e..6d02323aa 100644
--- a/src/include/plibc.h
+++ b/src/include/plibc.h
@@ -22,7 +22,7 @@
22 * @brief PlibC header 22 * @brief PlibC header
23 * @attention This file is usually not installed under Unix, 23 * @attention This file is usually not installed under Unix,
24 * so ship it with your application 24 * so ship it with your application
25 * @version $Revision: 39 $ 25 * @version $Revision: 44 $
26 */ 26 */
27 27
28#ifndef _PLIBC_H_ 28#ifndef _PLIBC_H_
@@ -379,6 +379,7 @@ int _win_access( const char *path, int mode );
379int _win_chmod(const char *filename, int pmode); 379int _win_chmod(const char *filename, int pmode);
380char *realpath(const char *file_name, char *resolved_name); 380char *realpath(const char *file_name, char *resolved_name);
381long _win_random(void); 381long _win_random(void);
382void _win_srandom(unsigned seed);
382int _win_remove(const char *path); 383int _win_remove(const char *path);
383int _win_rename(const char *oldname, const char *newname); 384int _win_rename(const char *oldname, const char *newname);
384int _win_stat(const char *path, struct stat *buffer); 385int _win_stat(const char *path, struct stat *buffer);
@@ -492,6 +493,7 @@ size_t strnlen (const char *str, size_t maxlen);
492 #define MUNMAP(s, l) munmap(s, l) 493 #define MUNMAP(s, l) munmap(s, l)
493 #define STRERROR(i) strerror(i) 494 #define STRERROR(i) strerror(i)
494 #define RANDOM() random() 495 #define RANDOM() random()
496 #define SRANDOM(s) srandom(s)
495 #define READLINK(p, b, s) readlink(p, b, s) 497 #define READLINK(p, b, s) readlink(p, b, s)
496 #define LSTAT(p, b) lstat(p, b) 498 #define LSTAT(p, b) lstat(p, b)
497 #define LSTAT64(p, b) lstat64(p, b) 499 #define LSTAT64(p, b) lstat64(p, b)
@@ -570,6 +572,7 @@ size_t strnlen (const char *str, size_t maxlen);
570 #define CHMOD(f, p) _win_chmod(f, p) 572 #define CHMOD(f, p) _win_chmod(f, p)
571 #define PIPE(h) _win_pipe(h) 573 #define PIPE(h) _win_pipe(h)
572 #define RANDOM() _win_random() 574 #define RANDOM() _win_random()
575 #define SRANDOM(s) _win_srandom()
573 #define REMOVE(p) _win_remove(p) 576 #define REMOVE(p) _win_remove(p)
574 #define RENAME(o, n) _win_rename(o, n) 577 #define RENAME(o, n) _win_rename(o, n)
575 #define STAT(p, b) _win_stat(p, b) 578 #define STAT(p, b) _win_stat(p, b)