search for: getrandomnumberseed

Displaying 2 results from an estimated 2 matches for "getrandomnumberseed".

2014 Feb 03
6
[LLVMdev] ADT/Hashing.h on 32-bit platforms
...anyway. Another attached patch implements llvm::sys::Process::GetRandomNumber() on Windows. (There's already a Unix implementation.) This function could be useful for implementing the missing random per-execution seed functionality. (Though it might take a little care to deal with Process::GetRandomNumberSeed potentially calling back into hash_combine on Unix.) In a little experiment I made, changing the seed per execution seemed to lead to test suite errors for clang's PCH support and other components. - Stephan -------------- next part --------------
2014 Feb 01
2
[LLVMdev] ADT/Hashing.h on 32-bit platforms
Hi, Currently the hashing implementation in ADT/Hashing.h produces hash values on 32-bit platforms that differ from the lower 32-bits of the hash values produced on 64-bit platforms. It seems the only reason for this difference is that the uint64_t integer seed is truncated to size_t. Since the usage of uint64_t and size_t as types for seed values in the implementation is somewhat