Skip to content

Commit

Permalink
use _crt_secure_no_warnings #define _CRT_SECURE_NO_WARNINGS
Browse files Browse the repository at this point in the history
  • Loading branch information
badApple001 committed Jan 3, 2024
1 parent c350db2 commit 724c531
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vs/*
x64/*
3 changes: 3 additions & 0 deletions Il2cppEncrtypt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetName>EasyObfuscation</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetName>EasyObfuscation</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down
4 changes: 4 additions & 0 deletions Native.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


#include "pch.h"
#include "Native.h"
#include <stdio.h>
Expand All @@ -11,6 +13,8 @@
#include <direct.h>
using namespace std;



static random_device s_seed; //硬件生成随机种子
static ranlux48 s_randomEngine(s_seed()); //利用种子生成随机数引擎
static uniform_int_distribution<unsigned int> s_uint_distrib(UINT_MAX / 2, UINT_MAX);
Expand Down
3 changes: 2 additions & 1 deletion framework.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容
#define _CRT_SECURE_NO_WARNINGS
// Windows 头文件
#include <windows.h>
#include <windows.h>

0 comments on commit 724c531

Please sign in to comment.