17 #ifndef PAGESPEED_KERNEL_UTIL_NONCE_GENERATOR_H_
18 #define PAGESPEED_KERNEL_UTIL_NONCE_GENERATOR_H_
24 namespace net_instaweb {
uint64 NewNonce()
Generate a fresh, ideally cryptographic, nonce. Thread-safe.
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
Definition: scoped_ptr.h:30
virtual uint64 NewNonceImpl()=0
Subclasses must implement this method. Locking is already handled.
Definition: nonce_generator.h:28
NonceGenerator(AbstractMutex *mutex)
Takes ownership of mutex.
Definition: nonce_generator.h:36