aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index 33d9f0b..8b6df8e 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -88,7 +88,8 @@ template <bool OPT>
88 if (!_lindaName.empty()) { 88 if (!_lindaName.empty()) {
89 std::ignore = luaG_pushstringview(L_, _lindaName); 89 std::ignore = luaG_pushstringview(L_, _lindaName);
90 } else { 90 } else {
91 lua_pushfstring(L_, "%p", _linda); 91 // obfuscate the pointer so that we can't read the value with our eyes out of a script
92 std::ignore = luaG_pushstringview(L_, "%p", std::bit_cast<uintptr_t>(_linda) ^ kConfigRegKey.storage);
92 } 93 }
93 lua_concat(L_, 2); 94 lua_concat(L_, 2);
94 return 1; 95 return 1;