Choose correct abstraction for topic_foo. Abstract random-integer code

svn:r249
This commit is contained in:
Nick Mathewson
2003-04-17 17:10:41 +00:00
parent fdf4d4aa85
commit 32a3e704b4
8 changed files with 30 additions and 39 deletions
+2
View File
@@ -85,6 +85,8 @@ int crypto_SHA_digest(unsigned char *m, int len, unsigned char *digest);
int crypto_rand(unsigned int n, unsigned char *to);
int crypto_pseudo_rand(unsigned int n, unsigned char *to);
#define CRYPTO_PSEUDO_RAND_INT(v) crypto_pseudo_rand(sizeof(v),(char*)&(v))
/* errors */
char *crypto_perror();
#endif