Skip to content

Commit

Permalink
Update xorlit.hpp
Browse files Browse the repository at this point in the history
Removed invalid remnant CreateString function
  • Loading branch information
igozdev committed Jan 7, 2023
1 parent f1e44d0 commit ce6d879
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/xorlit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,11 @@ namespace xorlit
char m_Data[Size];
};

template <size_t Size>
constexpr String<Size> CreateString(const char (&s)[Size])
{
return String<Size>(s);
}
template <size_t Size>
constexpr String<Size> CreateString(const char (&s)[Size], char key)
{
return String<Size>(s, key);
}
}

#define XORLITSTR(s) xorlit::CreateString(s, static_cast<char>((xorlit::time + __LINE__ * 100000) % 255)).Xor()
#define XORLITSTR(s) xorlit::CreateString(s, static_cast<char>((xorlit::time + __LINE__ * 100000) % 255)).Xor()

0 comments on commit ce6d879

Please sign in to comment.