1 Star 0 Fork 0

pedoc / GemBox.KeyGen

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未指定开源许可证,未经作者的许可,此代码仅用于学习,不能用于其他用途。
克隆/下载
Class1227.cs 2.70 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
pedoc 提交于 2019-04-15 17:32 . init
using System;
namespace GemBox.KeyGen
{
internal sealed class Class1227
{
// Token: 0x06003690 RID: 13968 RVA: 0x0002A461 File Offset: 0x00028661
public Class1227() : this(Environment.TickCount)
{
}
// Token: 0x06003691 RID: 13969 RVA: 0x001102C8 File Offset: 0x0010E4C8
public Class1227(int int_3)
{
int num = 161803398 - Math.Abs(int_3);
this.int_2[55] = num;
int num2 = 1;
for (int i = 1; i < 55; i++)
{
int num3 = 21 * i % 55;
this.int_2[num3] = num2;
num2 = num - num2;
if (num2 < 0)
{
num2 += int.MaxValue;
}
num = this.int_2[num3];
}
for (int j = 1; j < 5; j++)
{
for (int k = 1; k < 56; k++)
{
this.int_2[k] -= this.int_2[1 + (k + 30) % 55];
if (this.int_2[k] < 0)
{
this.int_2[k] += int.MaxValue;
}
}
}
this.int_1 = 21;
}
// Token: 0x06003692 RID: 13970 RVA: 0x001103A0 File Offset: 0x0010E5A0
private double method_0()
{
int num = this.int_0 + 1;
this.int_0 = num;
if (num >= 56)
{
this.int_0 = 1;
}
num = this.int_1 + 1;
this.int_1 = num;
if (num >= 56)
{
this.int_1 = 1;
}
int num2 = this.int_2[this.int_0] - this.int_2[this.int_1];
if (num2 < 0)
{
num2 += int.MaxValue;
}
this.int_2[this.int_0] = num2;
return (double)num2 * 4.6566128752457969E-10;
}
// Token: 0x06003693 RID: 13971 RVA: 0x0002A46E File Offset: 0x0002866E
public int method_1()
{
return (int)(this.method_0() * 2147483647.0);
}
// Token: 0x06003694 RID: 13972 RVA: 0x0002A481 File Offset: 0x00028681
public int method_2(int maxValue)
{
if (maxValue < 0)
{
throw new ArgumentOutOfRangeException("maxValue", "Max value is less then min value.");
}
if (maxValue == 0)
{
return 0;
}
return (int)(this.method_0() * (double)maxValue);
}
// Token: 0x06003695 RID: 13973 RVA: 0x0002A4B0 File Offset: 0x000286B0
public int method_3(int minValue, int maxValue)
{
if (minValue > maxValue)
{
throw new ArgumentOutOfRangeException("minValue", "Min value is greater then max value.");
}
if (minValue == maxValue)
{
return minValue;
}
return (int)(this.method_0() * (double)(maxValue - minValue)) + minValue;
}
// Token: 0x06003696 RID: 13974 RVA: 0x00110428 File Offset: 0x0010E628
public void method_4(byte[] buffer)
{
if (buffer == null)
{
throw new ArgumentNullException("buffer");
}
for (int i = 0; i < buffer.Length; i++)
{
buffer[i] = (byte)(this.method_0() * 256.0);
}
}
// Token: 0x06003697 RID: 13975 RVA: 0x0002A4E4 File Offset: 0x000286E4
public double method_5()
{
return this.method_0();
}
// Token: 0x040014BE RID: 5310
private int int_0;
// Token: 0x040014BF RID: 5311
private int int_1;
// Token: 0x040014C0 RID: 5312
private int[] int_2 = new int[56];
}
}

评论 ( 0 )

你可以在登录后,发表评论

C#
1
https://gitee.com/pedoc/GemBox.KeyGen.git
git@gitee.com:pedoc/GemBox.KeyGen.git
pedoc
GemBox.KeyGen
GemBox.KeyGen
master

搜索帮助

233307 c1314fcc 1850385 233305 0212f5e2 1850385