int BraveSessionCache::FarbledInteger(FarbleKey key,
int spoof_value,
int min_random_offset,
int max_random_offset) {
if (farbled_integers_.count(key) == 0) {
FarblingPRNG prng = MakePseudoRandomGenerator(key);
farbled_integers_[key] =
prng() % (1 + max_random_offset - min_random_offset) +
min_random_offset;
}
return farbled_integers_[key] + spoof_value;
}
c:\code\chromium_git\chromium\src>ninja -C out\Release_GN_x86 cef
ninja: Entering directory `out\Release_GN_x86'
[0/1] Regenerating ninja files
[1/335] LINK v8_context_snapshot_generator.exe v8_context_snapshot_generator.exe.pdb
FAILED: v8_context_snapshot_generator.exe v8_context_snapshot_generator.exe.pdb
ninja -t msvc -e environment.x86 -- ..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /nologo -libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\12.0.0\lib\windows "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\ATLMFC\lib\x86" "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\lib\x86" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x86" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x86" /OUT:./v8_context_snapshot_generator.exe /PDB:./v8_context_snapshot_generator.exe.pdb @./v8_context_snapshot_generator.exe.rsp
lld-link: error: undefined symbol: public: __thiscall absl::random_internal::Randen::Randen(void)
>>> referenced by .\..\..\third_party\blink\renderer\core\farbling\brave_session_cache.cc:357
>>> blink_core.lib(brave_session_cache.obj):(public: bool __thiscall brave::BraveSessionCache::AllowFontFamily(class blink::WebContentSettingsClient *, class WTF::AtomicString const &))
>>> referenced by .\..\..\third_party\blink\renderer\core\farbling\brave_session_cache.cc:343
>>> blink_core.lib(brave_session_cache.obj):(public: int __thiscall brave::BraveSessionCache::FarbledInteger(enum brave::FarbleKey, int, int, int))
>>> referenced by .\..\..\third_party\blink\renderer\core\farbling\brave_session_cache.cc:329
>>> blink_core.lib(brave_session_cache.obj):(public: class WTF::String __thiscall brave::BraveSessionCache::FarbledUserAgent(class WTF::String))
>>> referenced 1 more times
lld-link: error: undefined symbol: public: static void __cdecl absl::random_internal::RandenSlow::Generate(void const *, void *)
seems that abseil-cpp obj files are not generated in out folder.
c:\code\chromium_git\chromium\src>ninja -C out\Release_GN_x86 cef
ninja: Entering directory `out\Release_GN_x86'
[0/1] Regenerating ninja files
ERROR Unresolved dependencies.
//third_party/blink/renderer/core:core(//build/toolchain/win:win_clang_x86)
needs //third_party/abseil-cpp:abseil-cpp(//build/toolchain/win:win_clang_x86)
how to use abseil-cpp in a correct way? under src\third_party\blink\renderer\core