mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 13:30:47 -04:00
Minor tweaks
This commit is contained in:
parent
96afa05b77
commit
7a2213a04d
@ -31,8 +31,11 @@ template <typename T>
|
||||
class byte_hash {
|
||||
public:
|
||||
byte_hash() {
|
||||
std::default_random_engine generator;
|
||||
std::uniform_int_distribution<T> distribution(0, static_cast<T>(-1));
|
||||
std::mt19937_64 generator;
|
||||
std::uniform_int_distribution<T> distribution(
|
||||
0, std::numeric_limits<T>::max());
|
||||
|
||||
generator.seed(42);
|
||||
|
||||
for (size_t i = 0; i < hash_.size(); ++i) {
|
||||
hash_[i] = distribution(generator);
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <sparsehash/dense_hash_map>
|
||||
|
||||
#include "dwarfs/block_manager.h"
|
||||
#include "dwarfs/cyclic_hash.h"
|
||||
#include "dwarfs/entry.h"
|
||||
#include "dwarfs/filesystem_writer.h"
|
||||
#include "dwarfs/inode.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user