/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | random.cpp | 24 Xoroshiro128(uint64_t seed) in Xoroshiro128() argument 26 Initialize(seed); in Xoroshiro128() 30 void Initialize(uint64_t seed) override 33 uint64_t z = (seed += 0x9e3779b97f4a7c15); 37 z = (seed += 0x9e3779b97f4a7c15); 41 z = (seed += 0x9e3779b97f4a7c15); 45 z = (seed += 0x9e3779b97f4a7c15); 74 BASE_NS::unique_ptr<IRandom> CreateXoroshiro128(uint64_t seed) in CreateXoroshiro128() argument 76 return BASE_NS::unique_ptr<IRandom>(new Xoroshiro128(seed)); in CreateXoroshiro128()
|
H A D | random.h | 23 BASE_NS::unique_ptr<IRandom> CreateXoroshiro128(uint64_t seed);
|
H A D | object_registry.h | 41 virtual void Initialize(uint64_t seed) = 0;
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/ |
H A D | hash.h | 140 inline void HashCombine(uint64_t& seed, const T& v) in HashCombine() argument 145 seed ^= hash(v) + GOLDEN_RATIO + (seed << ROTL) + (seed >> ROTR); in HashCombine() 149 inline void HashCombine(uint64_t& seed, const Rest&... rest) in HashCombine() argument 151 (HashCombine(seed, rest), ...); in HashCombine() 157 uint64_t seed = 0; in Hash() local 158 (HashCombine(seed, BASE_NS::forward<Rest>(rest)), ...); in Hash() 159 return seed; in Hash() 165 uint64_t seed in HashRange() local 174 HashRange(uint64_t& seed, Iter first, Iter last) HashRange() argument [all...] |
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/ |
H A D | util.rs | 26 static RNG: Cell<Wrapping<u64>> = Cell::new(Wrapping(seed())); 29 // The returned value of `seed()` must be nonzero. 30 fn seed() -> u64 { in seed() functions 31 let seed = RandomState::new(); in seed() 35 let mut hasher = seed.build_hasher(); in seed() 44 hasher = seed.build_hasher(); in seed()
|
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | image_compressor.cpp | 371 * @param seed The hash seed. 375 static uint32_t Hash52(uint32_t seed) argument 377 seed ^= seed >> 15; 380 seed *= 0xEEDE0891; 381 seed ^= seed >> 5; 382 seed += seed << 1 402 SelectPartition(int32_t seed, int32_t x, int32_t y, int32_t z, int32_t partitionCount, bool smallBlock) global() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.h | 40 explicit TestRend(uint32_t seed) { init(seed); }
in TestRend() argument 50 void init(uint32_t seed);
51 uint32_t next(uint32_t seed);
|
H A D | test_common.cpp | 33 uint32_t TestRend::next(uint32_t seed)
in next() argument 35 return TMUL*seed + TADD;
in next() 38 void TestRend::init(uint32_t seed)
in init() argument 40 a = next(seed);
in init()
|
/foundation/arkui/ace_engine_lite/frameworks/targets/ |
H A D | platform_adapter.cpp | 75 void Srand(unsigned seed) in Srand() argument 78 srand(seed); in Srand()
|
H A D | platform_adapter.h | 25 void Srand(unsigned seed);
|
/foundation/multimodalinput/input/util/common/include/ |
H A D | id_factory.h | 29 explicit IdFactory(T seed) : seed_(seed) {} in IdFactory() argument
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/ |
H A D | lnn_ble_heartbeat.h | 28 int32_t HbGenerateBitPosition(int32_t min, int32_t max, int64_t seed, int32_t *randPos, int32_t num);
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | gpu_memory_allocator_vk.cpp | 84 uint64_t seed = importantEngineCreationFlags; in hash() local 85 HashCombine(seed, (uint64_t)desc.usageFlags, (uint64_t)desc.memoryPropertyFlags); in hash() 86 return seed; in hash() 96 uint64_t seed = importantImageUsageFlags; in hash() local 97 HashCombine(seed, (uint64_t)desc.imageType, (uint64_t)desc.memoryPropertyFlags); in hash() 98 return seed; in hash()
|
H A D | node_context_pool_manager_vk.cpp | 50 uint64_t seed = 0; in hash() local 51 HashRange(seed, subpass.inputAttachmentIndices, subpass.inputAttachmentIndices + subpass.inputAttachmentCount); in hash() 52 HashRange(seed, subpass.colorAttachmentIndices, subpass.colorAttachmentIndices + subpass.colorAttachmentCount); in hash() 54 seed, subpass.resolveAttachmentIndices, subpass.resolveAttachmentIndices + subpass.resolveAttachmentCount); in hash() 56 HashCombine(seed, static_cast<uint64_t>(subpass.depthAttachmentIndex)); in hash() 59 HashCombine(seed, subpass.viewMask); in hash() 61 return seed; in hash()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_scale_demo.cpp | 43 static std::random_device seed; in GetRandomScale() local 44 std::mt19937_64 gen(seed()); in GetRandomScale()
|
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | string_helper.cpp | 195 unsigned int seed = 31; // 31 131 1313 13131 131313 etc..
in GetHashCode() local 201 hash = hash * seed + (*string);
in GetHashCode()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | node_context_pso_manager.cpp | 37 uint64_t seed = BASE_NS::FNV_OFFSET_BASIS; in hash() local 47 HashCombine(seed, array_view(data, bytes)); in hash() 56 return seed; in hash()
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_map.c | 38 const uint32_t seed = 131; in MapHash() local 44 hash = (hash * seed) + (*key++); in MapHash()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_typeface.cpp | 335 uint32_t seed = ttfStream.get() != nullptr ? ttfStream->getLength() : 0; in GetHash() local 336 hash_ = SkOpts::hash_fn(skData->data(), skData->size(), seed); in GetHash()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributeddb_data_generator.cpp | 92 int seed = GetRandInt(0, 61); // the seed range is from 0 to 61 which is the elements quantity of charSet in GenerateRandRecord() local 93 entry.key.push_back(charSet[seed]); in GenerateRandRecord() 97 int seed = GetRandInt(0, 61); // the seed range is from 0 to 61 which is the elements quantity of charSet in GenerateRandRecord() local 98 entry.value.assign(entrySize.valSize - len, charSet[seed]); in GenerateRandRecord() 101 int seed = GetRandInt(0, 61); // the seed range is from 0 to 61 which is the elements quantity of charSet in GenerateRandRecord() local 102 entry.value.assign(entrySize.valSize - len, charSet[seed]); in GenerateRandRecord() 347 idx = GetRandInt(0, 61); // the seed rang in GenerateFixedLenRandRecords() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/ |
H A D | render_data_store_default_material.cpp | 52 inline void HashCombine32Bit(uint32_t& seed, const uint32_t v) in HashCombine32Bit() argument 57 seed ^= hash(v) + goldenRatio + (seed << rotl) + (seed >> rotr); in HashCombine32Bit()
|
/foundation/ability/idl_tool/util/ |
H A D | string.cpp | 220 unsigned int seed = 31; // 31 131 1313 13131 131313 etc.. in GetHashCode() local 226 hash = hash * seed + (*string); in GetHashCode()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/dialog_session/ |
H A D | dialog_session_manager.cpp | 48 std::random_device seed; in GenerateDialogSessionId() local 49 std::mt19937 rng(seed()); in GenerateDialogSessionId()
|
/foundation/filemanagement/app_file_service/services/backup_sa/include/module_ipc/ |
H A D | service.h | 525 static inline std::atomic<uint32_t> seed {1};
|