irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods_random.hpp
Go to the documentation of this file.
1 #ifndef IRODS_RANDOM_HPP
2 #define IRODS_RANDOM_HPP
3 
4 namespace irods {
5  void getRandomBytes( void * buf, int bytes );
6 
7  template <typename T>
8  T
10  T random;
11  getRandomBytes( &random, sizeof(random) );
12  return random;
13  }
14 }
15 #endif // IRODS_RANDOM_HPP
irods::getRandom
T getRandom()
Definition: irods_random.hpp:9
irods
Definition: apiHandler.hpp:35
buf
static char buf[64+50+1]
Definition: rsAuthRequest.cpp:21
irods::getRandomBytes
void getRandomBytes(void *buf, int bytes)
Definition: irods_random.cpp:6