首页
社区
课程
招聘
[求助]32位无符号随机函数
发表于: 2013-12-11 23:55 28378

[求助]32位无符号随机函数

2013-12-11 23:55
28378
  这里公布一个新近制作的随机函数,随机性和均匀性都是很好的。因周期太大设备能力有限现在还无法测知,如果有人拥有较强的计算资源,是否能帮助测试一下。欢迎大家多提意见。       

一、函数及全局变量定义
unsigned int SJhs();                        //随机函数
void CSHhs(char*zz);                        //初始化函数
char* Zy(char *s1,char *s2,int N,int n);//N字节数组序列号左移n次函数
int kk=0;
unsigned char dy_1[256+1]={0x66,0xcf,0xa7,0x88,0xd7,0x47,0x8d,0x07,0xad,0xa3,0x8f,0x89,0x0d,0xb7,0x91,0xec,0xaa,0xdb,0x43,0xc2,0x4d,0xab,0x99,0x92,0x2c,0x4c,0x7f,0x36,0xe3,0x3d,0x5f,0x50,0x4b,0x3a,0x79,0x6e,0xdc,0x98,0xd1,0xbc,0x9e,0x60,0xf3,0xd0,0xb4,0x8a,0x5b,0xa6,0x19,0xb0,0x25,0x97,0xed,0xcb,0x71,0xeb,0x11,0x20,0x8b,0x64,0x1c,0xbf,0x52,0x1e,0xaf,0x42,0x94,0xf5,0xb9,0xdf,0x28,0x56,0x81,0x6c,0x67,0xd8,0x2a,0x49,0x96,0xac,0x04,0x74,0x84,0x85,0x2f,0x0f,0xfe,0x24,0x90,0x1a,0xbb,0x63,0x2e,0x6f,0x5e,0xff,0x3f,0xdd,0xfd,0x65,0x62,0x09,0x9a,0xf1,0xce,0x78,0xa9,0x95,0xae,0x83,0x15,0x5a,0xb8,0xc1,0xbd,0x58,0x13,0x5c,0xc8,0xd4,0x03,0xa5,0x00,0x0e,0x76,0xfb,0xbe,0xd2,0x0a,0x61,0x16,0x59,0x75,0x6b,0x23,0x77,0xe6,0x82,0x69,0xd5,0xa0,0xfa,0xf8,0x35,0xf4,0x9f,0xc3,0x26,0x93,0x10,0xb5,0x01,0xee,0xcc,0xa4,0xc5,0x05,0xf7,0xf9,0x8e,0x7b,0x46,0xc7,0xb6,0x30,0x7e,0xa1,0x0c,0x45,0xf2,0xe9,0xca,0xda,0x3e,0x4e,0x9b,0x9c,0xe5,0x7a,0xe8,0x29,0x6a,0x27,0x57,0x73,0xba,0x02,0x1b,0x72,0x87,0xf0,0x80,0x33,0xb1,0x14,0xb2,0x55,0xf6,0x4f,0x18,0xe7,0xcd,0xc9,0xe4,0xea,0x53,0x08,0x3b,0x86,0xc0,0xa2,0x48,0x31,0x34,0x8c,0x39,0xd3,0x2d,0xc6,0x9d,0xb3,0xd9,0x7c,0x06,0xef,0x40,0x7d,0xd6,0x44,0x2b,0xa8,0xc4,0x32,0x17,0x0b,0xe1,0xe0,0x1d,0xde,0x54,0x1f,0x38,0x51,0x68,0x4a,0x3c,0x12,0x5d,0x22,0x6d,0x37,0xe2,0x21,0x41,0xfc,0x73};
unsigned char dy1_1[256+1]={0x77,0x0d,0x78,0xdb,0xba,0x0e,0xb1,0x6b,0xde,0x84,0x43,0xe4,0x0b,0x92,0x94,0xda,0x34,0x30,0x40,0xbf,0x91,0xc0,0x19,0xfa,0x71,0xef,0xe7,0x75,0x33,0xa5,0xa8,0xc2,0x1a,0x2d,0x59,0x81,0x14,0xc3,0x01,0x85,0x49,0x16,0x2f,0x20,0x15,0xf0,0x06,0x7f,0x8f,0xd8,0x64,0x7d,0xd0,0x51,0x52,0x0c,0x90,0x24,0xa1,0x83,0xb2,0x08,0xb5,0x6c,0xbc,0x8a,0x9f,0x97,0x9c,0x22,0xee,0xb3,0xc9,0x54,0x72,0x5e,0xd2,0x79,0x57,0x42,0x55,0xa0,0x39,0xd6,0xe0,0x4c,0xea,0x80,0x21,0xb8,0x99,0xd1,0x5d,0xb6,0xb0,0xd9,0x17,0x9b,0x12,0x7c,0x67,0x53,0xfc,0x50,0xaf,0x7e,0x8d,0x13,0x09,0x07,0x58,0x95,0xf3,0xa7,0x86,0x8b,0xa2,0x02,0x4d,0x4a,0x0a,0x62,0xd3,0x6e,0xf4,0x65,0xa4,0x8c,0x93,0x1b,0x45,0x0f,0xfd,0x2a,0xd7,0x73,0x10,0x41,0x1e,0xf8,0x35,0xce,0xff,0x66,0x61,0xca,0x2b,0x03,0x48,0x1c,0x18,0x60,0xf5,0x26,0xdc,0xa3,0x89,0x3d,0xc6,0x47,0xc5,0x29,0x7b,0xf6,0xcd,0x37,0x56,0x31,0x8e,0x3e,0x6a,0x87,0xa9,0x5f,0xe5,0xe9,0xc7,0x63,0xae,0x04,0x1f,0x69,0x76,0x05,0xf7,0xfe,0xbd,0xaa,0xbb,0x5c,0x2e,0x88,0xac,0x3f,0xbe,0x9d,0x4b,0xec,0x36,0x5a,0x74,0xcf,0x32,0x27,0xeb,0xe8,0xa6,0xed,0x28,0x82,0x00,0x68,0xfb,0x4f,0xc8,0xcb,0xf2,0x9a,0x38,0x96,0xd5,0xe6,0x3b,0x3c,0x9e,0xe3,0x25,0x7a,0xb9,0x98,0x5b,0x6d,0x73,0xf1,0xdd,0xb4,0x1d,0xc4,0xb7,0x23,0xc1,0xd4,0x46,0xad,0x6f,0x44,0x11,0x4e,0xe1,0xcc,0x3a,0xdf,0xe2,0xf9,0xab,0xf7};
unsigned char dy_2[256+1]={0x5d,0x22,0x37,0xa9,0xb9,0x1e,0x2b,0xe5,0xfc,0x82,0x63,0x53,0x26,0xc9,0x73,0x31,0x75,0x39,0x18,0x6c,0x1a,0xb4,0xfb,0xbe,0xd9,0xe4,0x3e,0x34,0x8c,0x91,0xf2,0xe6,0xbd,0x2d,0x93,0xb0,0xc6,0x04,0x7a,0x12,0xa5,0x6e,0xb8,0xac,0xd4,0x79,0xaa,0xaf,0xfe,0x13,0x6f,0x3c,0xd7,0xfd,0x47,0x9a,0x1d,0xf0,0xbb,0x92,0x14,0x61,0xcf,0x2f,0x90,0xf8,0x29,0xef,0x35,0x83,0xda,0x27,0x6b,0xdc,0x41,0x57,0xe3,0xff,0xdf,0x72,0x17,0xdb,0xbf,0x46,0x03,0x32,0xad,0x6a,0xe9,0x10,0x4d,0x44,0x95,0xca,0x48,0xf7,0xba,0x36,0xae,0xb1,0xa7,0xd8,0x67,0xea,0x84,0x15,0x7f,0x09,0x4f,0x5e,0x16,0xa8,0xb2,0x3f,0xb6,0xd1,0x0c,0x9b,0xc3,0x1c,0x77,0x01,0x62,0x08,0x5b,0xc2,0x69,0x51,0xe7,0x24,0xf9,0x23,0x20,0xd6,0xd2,0x28,0x68,0xa3,0xc0,0x74,0x55,0x88,0x8b,0xe2,0x86,0x21,0x9d,0x94,0xec,0x0a,0x73,0x2a,0x98,0x8f,0xc5,0xb5,0x7c,0x76,0x80,0xed,0x8d,0xf3,0x2e,0x42,0x71,0x0f,0xa2,0x85,0x1b,0xfa,0x4e,0xd3,0xab,0x5c,0x06,0xf1,0xce,0xdd,0x02,0x8a,0xf4,0xc1,0x1f,0x3d,0xcb,0x0e,0xe1,0xd0,0x4a,0x7b,0x2c,0x65,0x5a,0xd5,0x4b,0x6d,0x0d,0x58,0x64,0xc8,0x19,0x30,0xcd,0xb7,0x50,0x66,0xa6,0x56,0x81,0x89,0x8e,0x40,0x5f,0x9e,0x0b,0x00,0x78,0xc7,0x52,0x7d,0x96,0x7e,0x99,0x87,0x11,0xcc,0x3a,0xeb,0x54,0x05,0x97,0xc4,0x49,0xbc,0x38,0x3b,0xde,0xb3,0x4c,0xf6,0xa0,0xa4,0x43,0x45,0x25,0xa1,0x9f,0xe8,0xee,0x9c,0x59,0xf5,0xe0,0x60,0x07,0x85};
unsigned char dy1_2[256+1]={0x7a,0x30,0x1a,0x9b,0x71,0xb1,0xb4,0x7b,0xf6,0xc4,0xd3,0x8b,0x07,0x67,0xc3,0x80,0xd8,0x96,0xc0,0xe8,0x60,0x11,0xa7,0x35,0x64,0x15,0xcc,0x92,0x9e,0xb0,0xa0,0x74,0x94,0xa6,0x57,0xec,0x03,0x5e,0x27,0x65,0x4f,0xbc,0x2b,0xcd,0x43,0xbd,0x39,0x00,0x0e,0x12,0x1d,0xef,0x7f,0x73,0xd0,0xd9,0xe0,0x6b,0x31,0x45,0x06,0x41,0x6a,0x10,0x61,0x37,0xa4,0x76,0x4e,0x8f,0xda,0xff,0xdf,0xb9,0x0c,0x2a,0xd1,0x24,0xdd,0x53,0x2c,0xf5,0xc8,0x47,0xa2,0x9c,0x3a,0x17,0xe5,0xc9,0x6e,0x59,0x4b,0x5d,0x3c,0x34,0x09,0x87,0xf4,0x05,0x9d,0x7c,0x7d,0x2f,0x8d,0xa9,0x58,0x6f,0x66,0x0f,0x38,0x22,0xb8,0xc5,0xfb,0x95,0x40,0xf3,0xdb,0x68,0x9f,0x8e,0x25,0x0a,0xbb,0xce,0x6d,0x13,0x1b,0x1e,0x88,0xae,0xd2,0xe2,0x42,0x91,0xf7,0xf1,0xe7,0xc6,0xe4,0x5b,0x2d,0x69,0xd4,0x90,0xc7,0xbe,0x82,0xcb,0x2e,0xc2,0xa1,0xc1,0x3d,0xe3,0x23,0xb7,0xab,0x02,0xe1,0xb3,0x32,0xf8,0x0d,0x16,0x4a,0xb5,0xd5,0x78,0xad,0x5f,0x55,0xea,0xac,0xd6,0x83,0x99,0x4d,0xd7,0xa5,0xf2,0x0b,0xfc,0x5c,0x29,0xaf,0xdc,0x20,0x97,0x36,0x54,0x7e,0x56,0x28,0x9a,0x33,0x3e,0x84,0x89,0xee,0x98,0x51,0xed,0x44,0xeb,0xb2,0x18,0xe6,0x85,0x52,0x49,0xaa,0x3f,0x86,0xfe,0x5a,0x19,0x48,0xe9,0xf0,0x1f,0x93,0x04,0xca,0x4c,0x08,0x21,0xf9,0x1c,0xa3,0xb6,0xde,0xa8,0x3b,0x14,0x01,0x72,0xbf,0x26,0x63,0x73,0x8c,0x81,0xfa,0xba,0x8a,0x75,0x77,0xfd,0x50,0xcf,0x46,0x62,0x79,0xb5};
unsigned char dy_3[256+1]={0xfa,0x1d,0x21,0x88,0xad,0x22,0xa6,0x7a,0x49,0xd0,0x97,0x11,0x24,0xd4,0xef,0x6e,0x7f,0xdf,0x34,0x57,0x1b,0xf9,0xe8,0x1c,0xbd,0x3c,0x00,0x54,0x75,0xca,0x04,0xd6,0x42,0xfc,0x26,0x45,0x93,0x94,0x4a,0x58,0x14,0x84,0xf1,0x64,0xb1,0xc0,0xe0,0x77,0xac,0x16,0xbf,0x51,0xe4,0x9e,0x0e,0x74,0x37,0x17,0xdb,0x9f,0x73,0x56,0x62,0x43,0xf5,0x48,0x5c,0x55,0xcd,0x13,0x80,0x83,0x36,0xc3,0xfd,0xf4,0x8f,0x60,0x65,0xed,0x5a,0xd5,0x76,0x98,0x4b,0x66,0x33,0x46,0xc7,0xaf,0x9a,0x7b,0x72,0xde,0xda,0xe2,0x67,0x81,0xa7,0x8e,0xa9,0x18,0x99,0x29,0xbc,0x2a,0x61,0xb9,0xb7,0x86,0xa1,0x7e,0xaa,0x31,0x1f,0x27,0x32,0x7d,0xfb,0xc4,0x92,0xae,0xcc,0x08,0x40,0xe6,0x96,0xb6,0x8d,0x6c,0xa2,0x91,0x01,0x38,0xf0,0xc5,0xdc,0xec,0x4c,0x73,0x90,0x9c,0x15,0x52,0x20,0x69,0x12,0x2e,0x85,0x7c,0x3f,0x0f,0xb4,0xc8,0xc1,0x44,0xf3,0xc2,0x9d,0xff,0xb3,0x03,0x28,0xd3,0x47,0xa4,0xb2,0xb8,0x78,0xdd,0x82,0x3b,0x19,0x71,0x6f,0xf6,0x6a,0xe7,0xce,0x41,0xee,0xfe,0x25,0xa0,0x79,0x1a,0xab,0x07,0x2d,0xc6,0x4e,0xcf,0xa5,0xba,0x4d,0xeb,0x6d,0x35,0xa3,0x4f,0x2b,0x05,0x02,0x39,0xe9,0xd7,0x8a,0x68,0x10,0x95,0xf8,0x50,0x06,0x2f,0x30,0x0c,0x0d,0x2c,0x6b,0x9b,0x53,0x63,0x3d,0x5d,0xf2,0x59,0xc9,0x89,0xbb,0x0a,0xa8,0x09,0xd1,0x8b,0xea,0xe1,0xb0,0xd2,0xb5,0x87,0xe3,0x23,0x0b,0xf7,0x3e,0x5f,0x5e,0xe5,0xd9,0xd8,0x3a,0x1e,0xcb,0xbe,0x8c,0xb8};
unsigned char dy1_3[256+1]={0x24,0xd5,0x62,0x51,0x3e,0x1a,0xa0,0xe0,0xe9,0x90,0x78,0xdd,0x44,0x29,0x3d,0x52,0x8b,0x00,0xdb,0x5a,0xcf,0x07,0x43,0x57,0x13,0x41,0xab,0x4a,0x2d,0x42,0x01,0x3f,0xe8,0x02,0xb7,0xa4,0x06,0x72,0xec,0x6a,0x0a,0xdf,0x8a,0x96,0x4f,0xd6,0xea,0xc0,0xe5,0x85,0x81,0x9c,0xff,0xcb,0xf9,0x6f,0xd7,0xda,0xce,0x95,0x65,0x4d,0xd3,0x10,0x9f,0x2c,0x5f,0xe3,0x74,0x16,0xf4,0x36,0x0e,0x71,0x92,0x05,0x25,0xb4,0x9a,0xc9,0x68,0xaa,0xa2,0x84,0xba,0x9e,0x50,0xfa,0x8d,0x2b,0x5c,0x53,0xc2,0xc6,0x5b,0xb1,0x20,0xe1,0xfd,0x49,0x91,0xae,0x1e,0x21,0x66,0xbd,0xeb,0x63,0x3a,0xaf,0xfe,0x31,0xca,0xac,0x46,0xb2,0x04,0x88,0x39,0xf1,0x48,0xc3,0x17,0xa8,0xd1,0x60,0x1c,0xd9,0x08,0xc5,0x11,0x47,0x03,0x59,0x15,0x14,0xc1,0x32,0x0d,0x80,0x7d,0x0b,0x28,0xf3,0x12,0x4b,0x40,0xdc,0xa6,0xa3,0x73,0xb6,0x19,0x97,0xd8,0xd0,0x38,0x23,0x33,0x6b,0xbb,0xa1,0xb0,0xa5,0x79,0x8e,0xbc,0xa9,0x3c,0x8c,0xcc,0xe2,0x7c,0x6d,0xde,0x8f,0xf8,0xc7,0x93,0x9b,0x64,0x7f,0x5e,0xad,0x75,0xf0,0x1f,0xa7,0xd4,0x69,0x45,0xf7,0xf5,0x1d,0xd2,0x30,0xb5,0xb8,0x87,0x2e,0x9d,0x35,0x6c,0xc8,0xb9,0x0c,0x55,0xe6,0x86,0x7e,0x7b,0xcd,0x34,0x99,0x4c,0xe7,0xf2,0x5d,0xbf,0xbe,0x54,0x27,0xb3,0x1b,0x6e,0x3b,0x61,0xc4,0x58,0xee,0xfb,0x0f,0x73,0x94,0x22,0x26,0x7a,0xfc,0xf6,0xe4,0x18,0x56,0x4e,0xed,0x76,0x83,0x2a,0x67,0x82,0x77,0xef,0x98,0x2f,0x89,0x09,0xa9};
unsigned char dy_4[256+1]={0x83,0x2b,0xa5,0xde,0x82,0x35,0x75,0xf5,0x34,0xf0,0x33,0x59,0x50,0xea,0xab,0x8a,0x93,0xbe,0x88,0x36,0xf8,0x37,0x38,0xfa,0x53,0x60,0x79,0xfb,0x85,0xd9,0xe4,0x7f,0x6b,0x56,0xf9,0x28,0x14,0x94,0xf3,0x65,0xce,0x1e,0xe9,0x26,0x78,0x42,0xa2,0x2d,0xe5,0xae,0xb9,0x2c,0x6e,0x51,0xa7,0xf1,0x3a,0xbf,0xbd,0x15,0x8f,0x30,0xe3,0x9a,0x08,0x80,0x47,0xaa,0xff,0x1a,0xfc,0x0c,0x31,0x00,0xe0,0x9c,0xb8,0xa6,0x8d,0x3b,0x0f,0x3f,0xc2,0x55,0xc9,0xdc,0xd5,0x4a,0x21,0x46,0xa3,0x76,0xd6,0xa8,0x0a,0x68,0xc0,0x4d,0x97,0x69,0x39,0x29,0x57,0x5a,0x9e,0x41,0xb2,0x04,0xd2,0xb1,0x6f,0xed,0x0b,0xc1,0x52,0x7c,0x77,0x5f,0x20,0xd1,0xa1,0x0e,0x3c,0x44,0x87,0x2a,0x66,0x16,0x9d,0x1d,0x8c,0xdf,0x86,0x2e,0x99,0xba,0x7b,0xb5,0x62,0x3d,0x9b,0x73,0x0d,0x43,0xb0,0xd4,0x25,0x74,0x7a,0xf7,0x27,0x3e,0xe7,0xb3,0xca,0xbc,0x5b,0xb4,0x19,0x61,0xdb,0xad,0x5c,0xfe,0xef,0x7e,0x91,0xeb,0x98,0xa4,0xc7,0x81,0x03,0x32,0xcd,0x54,0x64,0x24,0x89,0x4e,0xda,0xa0,0xc4,0xcb,0x4c,0xc8,0x07,0x72,0xd0,0xf4,0xdd,0xe6,0xfd,0xe8,0xec,0xe2,0x4b,0x2f,0xc6,0x73,0xbb,0x17,0x02,0x8e,0x48,0x5d,0x22,0xc5,0x45,0x6a,0x13,0xcf,0x6d,0x4f,0x40,0x90,0xb7,0x11,0xf2,0x18,0x95,0x49,0x92,0x09,0x8b,0xb6,0x7d,0x05,0x10,0x1b,0xe1,0x1c,0x58,0x1f,0x06,0xd8,0x84,0x01,0xee,0x63,0xf6,0xac,0xc3,0xd3,0x71,0x5e,0x23,0xa9,0xcc,0xd7,0x96,0x6c,0x67,0x9f,0x12,0xeb};
unsigned char dy1_4[256+1]={0x2c,0x07,0xca,0x5e,0xb0,0x29,0xe3,0xe8,0x65,0x24,0x8a,0x5c,0x80,0x4a,0x1b,0x87,0x2e,0xa0,0x27,0x67,0xed,0x42,0x58,0xa1,0x75,0xd5,0xc2,0xd3,0x23,0x51,0xa2,0xd9,0x72,0x78,0x7e,0x44,0xc8,0xc7,0xe6,0x90,0x7c,0x46,0x34,0xfb,0x59,0xac,0xd0,0x71,0xf5,0x3c,0x60,0x1a,0xa8,0xad,0x79,0x50,0xa3,0xde,0xef,0x5d,0x37,0xb4,0x47,0xc6,0x25,0x8e,0x64,0xdd,0xb8,0x08,0x41,0xa5,0xb6,0x92,0x40,0x2d,0x1f,0x30,0xf1,0xdc,0x19,0xc5,0x38,0x81,0x8c,0x10,0xd6,0x39,0x26,0xa6,0xa4,0x6b,0x01,0xc1,0xf4,0x6c,0x3e,0xe5,0xe9,0x18,0x00,0xd2,0xff,0x17,0x0a,0xd7,0xe0,0x57,0x7a,0x9d,0x1c,0xaf,0xbc,0x0b,0x74,0x9b,0x95,0x3d,0x73,0x45,0x09,0x48,0x86,0x5f,0x8f,0x49,0xe2,0x0f,0x04,0x76,0xe4,0xcb,0x2a,0xaa,0x20,0xb3,0xb2,0x77,0x54,0xeb,0x8d,0x03,0xb5,0x69,0x84,0x98,0x35,0x3f,0x5b,0xea,0x15,0xb1,0x28,0xce,0x52,0xa7,0x96,0x61,0x66,0x89,0xbf,0xf2,0xe1,0xda,0x91,0x88,0x0c,0x6f,0xf9,0xdf,0xa9,0xfa,0x53,0x14,0x32,0xab,0x4c,0x31,0xc3,0xcc,0x05,0x93,0xe7,0x12,0xf8,0x94,0xd4,0x4e,0xcd,0x1d,0x63,0x21,0xcf,0x55,0x11,0x7d,0xfc,0xae,0xba,0x33,0x73,0xbb,0x13,0x3b,0x06,0x62,0x43,0x7b,0x8b,0xec,0xfe,0xdb,0xd1,0x56,0x3a,0x5a,0x6e,0x82,0x4b,0xbe,0xf3,0x4f,0x0e,0xf6,0x0d,0x1e,0x2f,0x9e,0xf0,0x9c,0x83,0xb9,0x2b,0x6d,0xbd,0x9a,0xc0,0xd8,0x7f,0xc9,0x6a,0xc4,0x97,0x22,0x16,0x68,0x02,0x99,0x4d,0x36,0xfd,0x9f,0x85,0xb7,0xee,0x6f};
unsigned char dy_5[256+1]={0x2d,0xdc,0x97,0x5c,0x28,0x03,0x6f,0x4d,0x11,0xd9,0x51,0x2a,0xb9,0x82,0x66,0x50,0x2f,0xe0,0xc5,0xd2,0xa9,0x5f,0x61,0xf5,0x26,0x8a,0x75,0xfb,0x1f,0xd3,0xa2,0x6e,0x8b,0x40,0xcb,0xcc,0xe6,0xa5,0x73,0x4a,0x1b,0x5b,0x01,0xac,0xf4,0x68,0xa1,0xfd,0xf7,0x84,0x67,0x9d,0xdd,0x98,0xc1,0xc0,0xb7,0x7d,0x57,0x37,0x25,0x30,0x71,0xb4,0x85,0xeb,0x64,0x27,0x35,0xfc,0x2e,0xe1,0xdb,0x6d,0x21,0xa6,0x79,0xe4,0x00,0xb5,0xc4,0x86,0xef,0xcd,0x17,0xe3,0x7c,0xa7,0x89,0x06,0x3f,0x91,0x3d,0x95,0xea,0x36,0x7f,0xa4,0x0d,0x3e,0xf3,0x07,0x09,0x90,0x6b,0xf2,0x41,0xbc,0x8e,0xbf,0xda,0x62,0x53,0x74,0x24,0xde,0xe7,0x20,0xfa,0xe5,0x18,0x54,0xc8,0xe9,0xec,0x87,0x04,0x63,0xa0,0x6a,0x4b,0x0f,0x33,0x88,0x55,0x1e,0xae,0x8f,0xb8,0x44,0x7a,0x99,0xee,0x77,0xab,0xd6,0x48,0xb0,0x52,0x3a,0x94,0xa8,0x9e,0x96,0x60,0x8c,0x8d,0xcf,0x43,0x4f,0x39,0xba,0x69,0xed,0x2b,0x59,0x5e,0x7e,0x93,0x56,0xf9,0xd5,0xf6,0x32,0x1d,0x0b,0x46,0xd4,0x5a,0xc3,0x16,0xdf,0x7b,0xbd,0xb1,0xd0,0x81,0x9f,0x6c,0x13,0x12,0x31,0xaa,0x42,0x9c,0x9a,0xc6,0xce,0xf1,0xe2,0x72,0xbe,0x47,0xf8,0xc2,0xe8,0x92,0x19,0x34,0x5d,0x65,0xff,0x1c,0xd8,0x83,0x08,0x3c,0xc9,0x14,0xd1,0xca,0x2c,0x80,0x0c,0x0e,0xaf,0xa3,0x4e,0x1a,0x29,0xd7,0xc7,0xf0,0x9b,0x73,0x0a,0x15,0x49,0x78,0x38,0xbb,0x05,0x76,0x4c,0x02,0x22,0xb6,0x58,0x3b,0x23,0xb2,0xb3,0xad,0x10,0xfe,0x7e};
unsigned char dy1_5[256+1]={0x79,0x97,0xa9,0x48,0xc9,0x22,0xfa,0x8a,0xe6,0x58,0xb7,0x7d,0x42,0xac,0x2c,0x8e,0xeb,0x49,0x26,0x72,0x84,0x14,0x11,0x1d,0xad,0x6b,0x5b,0xef,0x38,0x6f,0x67,0xa0,0x57,0xf3,0xc3,0xb9,0x9e,0xbf,0x1e,0x05,0xcd,0x13,0x5a,0x9d,0x35,0x6d,0x3f,0x76,0x89,0xbe,0xb3,0x50,0x8d,0x9f,0xa8,0x92,0xe1,0xd0,0x8b,0x1b,0xaf,0x25,0xf7,0x8f,0xea,0x4e,0x40,0xe8,0x2e,0x45,0xd1,0x56,0x73,0x18,0x73,0x69,0xb8,0x3a,0x3d,0xe5,0x17,0x3e,0xd4,0x29,0x09,0xc1,0x4b,0x4d,0x88,0x06,0x62,0xfc,0x27,0x6a,0x19,0xfd,0x3b,0x23,0x32,0x6c,0x5f,0x75,0x53,0xda,0x95,0xdc,0x8c,0xc7,0xcc,0xd9,0x5d,0x51,0xb4,0x36,0x1c,0x31,0x66,0x28,0xd8,0xf5,0x0d,0x68,0xa7,0x80,0xf9,0xa1,0x7f,0x1a,0x41,0x44,0xe3,0xf2,0xb5,0xc0,0xc6,0x2b,0x71,0xc2,0x93,0xec,0x39,0x98,0x37,0x12,0x86,0xa2,0xb6,0x9a,0x04,0x2a,0xce,0xd3,0x7b,0x7a,0xfe,0x91,0x5c,0xf4,0x61,0x0c,0x65,0x0b,0xcf,0x81,0xbd,0xde,0xab,0x1f,0x87,0xd5,0x96,0x3c,0x59,0x4a,0xd6,0x94,0xff,0xfb,0xee,0x83,0x10,0xdb,0x21,0xd7,0x6e,0xae,0x77,0x78,0x15,0x16,0x07,0x33,0x52,0xe0,0x74,0x20,0x7c,0x08,0x03,0xa3,0xd2,0x90,0x64,0x0a,0xf6,0x02,0xb0,0xe4,0xa4,0x01,0xe7,0x0f,0xf8,0xbc,0xa5,0xaa,0xba,0x9b,0xc5,0x99,0x55,0x24,0x0e,0x63,0x30,0xc4,0xe9,0xb1,0xca,0x5e,0x43,0x60,0x7e,0x47,0xa6,0x2f,0x34,0x9c,0xb2,0x4f,0x2d,0xcb,0xf1,0xbb,0xc8,0x4c,0x00,0x46,0xe2,0x54,0xed,0xdd,0x82,0xf0,0xdf,0x1f};
unsigned char dy_6[256+1]={0x53,0x6b,0x6f,0xbd,0x6d,0x23,0xd8,0x4c,0xc5,0xb3,0x62,0x15,0x78,0x09,0xa9,0xad,0xa7,0x11,0x4f,0x57,0x0f,0x01,0xfc,0x99,0x0d,0xb2,0xcc,0xd7,0xb4,0xbe,0x58,0x38,0x21,0x4b,0xfb,0x13,0xe1,0xe3,0x4a,0xc3,0x59,0xec,0x94,0x47,0xf8,0xf9,0xae,0x86,0xe2,0xe8,0xf0,0x28,0xe4,0x17,0x97,0x3a,0x83,0x39,0x2f,0x48,0xa5,0x6c,0x43,0x9c,0x72,0x88,0xc9,0xcb,0x87,0x79,0x4e,0x7f,0x32,0x0a,0xd4,0x85,0x71,0x40,0x95,0x7e,0x16,0x8c,0x26,0x31,0x66,0xce,0x77,0xed,0xe9,0x50,0x96,0x80,0x61,0x2d,0x10,0x22,0x36,0xd2,0xdb,0x98,0xc4,0xc1,0x00,0xb1,0xb8,0xcd,0x68,0x06,0xb7,0x05,0x37,0x8f,0xee,0x7a,0x9a,0xbc,0xbf,0x45,0x93,0xe7,0xac,0x69,0x0c,0xa8,0x3c,0x8e,0x4d,0xb6,0x42,0xde,0x8a,0x30,0xe5,0x14,0x60,0x84,0x2b,0xa4,0x67,0x73,0x0b,0xd1,0x55,0xbb,0x81,0x52,0x18,0x90,0x25,0x19,0xf1,0xb9,0xdd,0xa0,0x2e,0x73,0xdc,0xc0,0x46,0xb5,0xc8,0x75,0x29,0xba,0x24,0x91,0xc7,0x5a,0x41,0x49,0x9b,0xd6,0x56,0xc6,0x9e,0x1a,0x64,0x7d,0xa2,0x9d,0x1b,0xd5,0xf2,0x9f,0x34,0xfa,0x6e,0x27,0xaf,0xff,0x20,0x74,0xdf,0x54,0xda,0x02,0x92,0x8b,0x35,0x1f,0x51,0x5b,0x5e,0x04,0xeb,0xef,0xa6,0xc2,0x3e,0x82,0x5d,0xf4,0x33,0x7b,0x3f,0xe0,0x65,0xfe,0xf6,0x0e,0x2c,0x3b,0xd3,0x6a,0x3d,0xe6,0xb0,0x03,0x76,0x08,0x63,0x89,0x8d,0x2a,0xf7,0xfd,0x5f,0x1e,0x12,0xd9,0xf5,0x1d,0x44,0xaa,0x7c,0xab,0x1c,0xcf,0xea,0xa3,0xca,0xa1,0x07,0xd0,0x5c,0x5a};
unsigned char dy1_6[256+1]={0x88,0xc8,0x55,0xef,0x96,0x76,0xec,0xfa,0xb5,0x39,0x35,0xa1,0xa8,0xee,0x33,0x2e,0x73,0x43,0x31,0x8c,0x86,0x4e,0x28,0x5f,0xdd,0x3a,0x6c,0x0d,0x0c,0x71,0xe3,0x8b,0x99,0xd5,0xff,0x11,0x1c,0x74,0x2d,0x00,0xf5,0x83,0x16,0xcb,0x08,0x21,0xab,0x3b,0x9c,0xf0,0xb8,0x42,0x80,0xaa,0xc0,0x72,0xc6,0x40,0x8d,0x46,0x19,0x61,0x6b,0x69,0xb7,0xfd,0xe4,0xf8,0xa7,0xfc,0x02,0x27,0x9a,0x58,0xc7,0xba,0xc1,0x48,0x53,0xca,0x50,0x59,0xa0,0x17,0x20,0x34,0x2c,0xf2,0x0e,0xed,0x7d,0x41,0xf3,0x62,0x77,0x01,0x60,0x9b,0x66,0x4d,0x97,0xce,0xb1,0xb9,0x47,0xa5,0xf1,0xdc,0x4a,0xd3,0x5d,0xe5,0xe8,0x2f,0x63,0x2a,0xd1,0x1b,0x44,0x64,0xe1,0xda,0x4c,0x5a,0x5e,0x57,0xc3,0x84,0x3f,0x1e,0x04,0xa9,0x65,0x8a,0x07,0x82,0xfb,0xb4,0x32,0x51,0xae,0x7f,0xdb,0x9f,0xd0,0x1a,0xeb,0x30,0x8f,0xfe,0x6f,0x6e,0xe0,0x45,0xea,0x68,0xe6,0x18,0x7a,0x73,0xa4,0x38,0xf6,0x4b,0x12,0x23,0x90,0x3c,0x94,0x13,0x1f,0xb2,0xc5,0x29,0x52,0x5c,0x26,0xd9,0x0a,0x67,0x92,0x98,0xdf,0x6d,0x85,0x24,0x91,0xd8,0x25,0x9d,0x22,0x15,0xf7,0x78,0xbf,0x7b,0x37,0xd7,0x0b,0x79,0x7e,0x6a,0xa3,0xbe,0xc2,0x4f,0xaf,0xe2,0xb6,0x87,0x1d,0xac,0xc4,0xad,0x3e,0x03,0x7c,0x81,0x49,0xbd,0xa6,0xe9,0xf9,0xbb,0x14,0x5b,0xd4,0x56,0xc9,0x2b,0x8e,0xcd,0xb0,0xcf,0x54,0xde,0xd6,0x09,0x93,0xbc,0xa2,0xe7,0x89,0x10,0x05,0x0f,0x9e,0xcc,0x95,0xb3,0xd2,0x06,0x75,0xf4,0x36,0x3c};
unsigned char dy_7[256+1]={0x5c,0x74,0x00,0x9a,0x30,0xd1,0x76,0x9c,0xcc,0x44,0xf3,0x56,0x99,0xde,0x36,0xae,0x48,0x4a,0x1a,0xb7,0x6a,0xff,0xdd,0x54,0xd4,0xa3,0x0e,0x0d,0x78,0x52,0x2c,0x73,0xfd,0x31,0x72,0x23,0xcf,0x5a,0xbf,0x41,0x89,0xce,0x46,0x81,0x85,0x63,0x2e,0xbd,0x2b,0xba,0x09,0x58,0x17,0x20,0x75,0xd6,0x28,0xbc,0x6e,0x6d,0x1f,0x53,0x84,0x0c,0xc2,0xe9,0x8a,0x14,0x5d,0x03,0xd3,0x38,0xf2,0x33,0xac,0x86,0xdf,0x15,0x34,0x2f,0x26,0x1e,0x77,0x40,0x43,0x4d,0xe2,0x16,0x83,0xeb,0xf7,0xe1,0xca,0x66,0x7a,0xad,0x2d,0xf1,0x4c,0x42,0xb9,0xb2,0x29,0xa8,0xa6,0xa7,0xa2,0x67,0x7c,0x10,0x02,0x95,0x92,0x91,0x94,0x3a,0xb8,0x06,0x7d,0x50,0xfa,0x08,0x3c,0x6b,0x5b,0xd9,0x4b,0x9b,0xf8,0xd5,0x61,0xf6,0x22,0x71,0x68,0xe3,0x69,0xbe,0xc5,0xf9,0x47,0xea,0x19,0xc0,0xa0,0x73,0x5f,0xa5,0xd8,0x80,0xb4,0xb3,0x6f,0x9e,0x8f,0x25,0xe8,0x0b,0x4f,0x8b,0xec,0x96,0xef,0x8d,0x1b,0x07,0x5e,0xd0,0xc4,0x21,0x45,0x8e,0x39,0xb6,0x8c,0x3f,0xc3,0xd7,0xb1,0xfe,0x24,0x9d,0x65,0x3e,0x11,0xe4,0x01,0x55,0x1d,0x32,0x98,0x7f,0xc9,0xdc,0xd2,0xb0,0x3d,0x18,0xa9,0xcd,0xf5,0x35,0xab,0x64,0x9f,0xc7,0xc1,0x12,0x4e,0x0a,0xaa,0x37,0x79,0x49,0xfb,0xe0,0x62,0xbb,0x87,0xaf,0xe7,0xed,0x27,0xda,0xc8,0x3b,0xc6,0xe5,0xee,0x6c,0xe6,0x97,0xf0,0x7b,0x59,0x90,0x93,0x2a,0xcb,0x13,0xf4,0xb5,0x05,0xfc,0x04,0x1c,0x60,0xa1,0xa4,0xdb,0x51,0x88,0x82,0x0f,0x7e,0xd0};
unsigned char dy1_7[256+1]={0x36,0x17,0x6c,0x37,0xa6,0x57,0x5f,0x2d,0x42,0x6f,0x2f,0x9f,0x76,0x49,0x40,0x20,0xa3,0x60,0x59,0x8d,0x0a,0x56,0xe1,0xa4,0x78,0x3a,0x0f,0xde,0x7c,0xfc,0xee,0xf0,0xae,0x62,0xf3,0xe8,0x48,0xc8,0x28,0x82,0x34,0x71,0xd1,0x9a,0x44,0x5e,0xd6,0xbc,0x3c,0x3f,0xb9,0x04,0x2a,0x8e,0x81,0x39,0x46,0x15,0x5b,0xd3,0x45,0x6d,0xb6,0x24,0x11,0x4e,0xfa,0x65,0x31,0xab,0xdf,0xa5,0xc3,0x7b,0xc4,0x01,0x3e,0xec,0xe0,0xdd,0x66,0x1a,0x00,0x99,0xf7,0xad,0xbd,0x9c,0xbe,0x13,0x38,0xc6,0x0e,0x47,0xc0,0x64,0x1c,0xe3,0xd5,0x5a,0xed,0xb7,0x74,0x68,0x7d,0xff,0xb0,0xd8,0x09,0xa9,0xd7,0x51,0xfb,0x25,0x9e,0xa1,0x1e,0x67,0xaa,0x9d,0x32,0xca,0x3b,0x53,0x26,0xb2,0x6e,0xa0,0x86,0x5d,0x79,0x50,0x3d,0x10,0xe7,0x7f,0x30,0xeb,0xc7,0x9b,0xc9,0x88,0x91,0x05,0x06,0xcc,0x61,0xf2,0x29,0xf1,0x52,0xbb,0xe2,0x7e,0x14,0xda,0x6b,0xac,0x07,0xf5,0x98,0x12,0xa7,0xcd,0x6a,0x41,0x97,0xea,0xf8,0x0c,0x4c,0x87,0x8f,0xe6,0x8b,0x80,0x54,0xe5,0xb8,0x8a,0x08,0x19,0x93,0xf9,0x35,0x2e,0xba,0x89,0x0b,0xf6,0x94,0x4a,0x69,0xb1,0x2c,0xf4,0xaf,0x1f,0xb4,0x73,0xd0,0xc5,0xd4,0xa8,0x33,0x02,0x96,0x23,0x55,0x2b,0xb3,0x83,0x77,0xce,0x90,0x4b,0xd2,0x03,0xe9,0x4f,0x84,0x18,0xcb,0x73,0x43,0x1d,0x63,0x72,0x0d,0x75,0xdc,0x27,0x92,0xb5,0xa2,0x1b,0xdb,0x4d,0x8c,0xfd,0xd9,0x21,0x85,0x7a,0xe4,0x95,0xc1,0xfe,0xcf,0x58,0x16,0xef,0x5c,0x22,0xc2,0xea};
unsigned char dy_8[256+1]={0x1b,0xfe,0xbd,0x93,0x14,0x52,0xde,0xba,0xc9,0x7e,0xdc,0xbf,0xdb,0x86,0xb7,0x58,0xb6,0xe3,0x9f,0xd8,0xb0,0x77,0x71,0x56,0x23,0x73,0x6f,0xe1,0x00,0xaf,0x28,0x53,0x75,0xa1,0xa8,0x2f,0x69,0x3e,0xa3,0x45,0x33,0x5a,0x4d,0x12,0x87,0xb2,0x54,0xf2,0xb5,0x06,0x8f,0x2d,0xda,0x7c,0xa9,0xd9,0xd5,0x44,0x74,0x41,0x6e,0xc4,0xef,0xae,0x02,0x81,0x0c,0x8c,0xc8,0xca,0x4e,0x16,0x61,0x0d,0x26,0x43,0x03,0x15,0x3b,0x2e,0xff,0x36,0x76,0x39,0x5b,0x9a,0x67,0xc3,0x4a,0x80,0x66,0xf9,0x6d,0xd7,0xfc,0x2b,0x96,0x88,0xc6,0x0a,0x09,0xb3,0xf8,0xea,0x42,0x35,0xa2,0xbe,0x9b,0x8a,0xa4,0x22,0x38,0x50,0x63,0x2a,0x78,0x04,0x25,0x59,0xfd,0x11,0xaa,0xd4,0xb8,0x3d,0x5f,0xbc,0x57,0x51,0x32,0xe2,0xb4,0xf5,0xe4,0x21,0x3c,0x30,0xd2,0xd0,0xd3,0xfb,0xa5,0xe7,0xe8,0x9d,0x84,0x5e,0x18,0x72,0xeb,0x4c,0xad,0xf0,0x7f,0xf6,0x0f,0xc0,0x4b,0xe9,0x0e,0x08,0x95,0x97,0x10,0xbb,0x1f,0x3f,0xb9,0x8e,0x5d,0x34,0x1a,0xdd,0x49,0x5c,0x79,0xab,0xce,0xc2,0xcf,0x40,0x83,0x7a,0xfa,0x7d,0x07,0xf1,0x68,0x9c,0xa7,0x24,0x13,0xc5,0xc1,0x20,0x85,0x1d,0x29,0xe0,0x6b,0xf3,0xe5,0x27,0xcb,0x37,0xb1,0x6c,0x82,0x17,0xe6,0xcc,0xac,0x47,0x62,0x8d,0x05,0x65,0x91,0x1c,0x55,0xc7,0xd6,0xd1,0x46,0x60,0x0b,0x89,0x92,0xa6,0x7b,0x3a,0x4f,0x2c,0xed,0xf4,0x8b,0x64,0x48,0xf7,0x01,0x9e,0xa0,0x98,0x1e,0xdf,0x90,0x6a,0x99,0x73,0x19,0xee,0x94,0xcd,0xec,0x3f};
unsigned char dy1_8[256+1]={0x27,0x24,0xbf,0x4e,0x3a,0x31,0xd6,0x0d,0x21,0xea,0xb7,0x77,0x50,0xac,0x99,0xd4,0x73,0x19,0x0c,0x9e,0x26,0xec,0xeb,0xc7,0x49,0x78,0xb5,0xb8,0x90,0xdc,0x63,0x42,0x0e,0xc2,0x95,0x84,0xa9,0x44,0x79,0x9c,0xd9,0xc4,0x57,0x51,0x5d,0x56,0x2f,0x91,0xde,0x2e,0x4f,0xfd,0x83,0xf4,0x93,0x52,0x7b,0x3c,0x3b,0x07,0x8a,0x5e,0x0a,0x60,0xd0,0x6d,0xb9,0x1d,0x97,0x8b,0x1f,0xfb,0x8f,0x64,0xff,0x13,0x96,0xed,0x59,0x85,0x58,0xfe,0x1b,0x03,0x2d,0xa1,0x7a,0xca,0x11,0x2c,0xa2,0xdb,0xe1,0x0f,0x7e,0xcf,0x46,0x7d,0xf9,0x3e,0x8e,0x5f,0xbc,0xd3,0xef,0xc1,0xc9,0x1a,0x82,0x05,0xb4,0x45,0x65,0xbe,0x37,0xf0,0xb2,0xc6,0xe8,0x86,0x28,0x1e,0xa6,0xe2,0x25,0x40,0xba,0x3d,0x48,0x00,0x55,0x1c,0xbb,0x32,0xce,0x74,0xab,0x35,0x61,0x18,0x98,0xe5,0x71,0x6f,0xf6,0x6a,0x53,0x4b,0x5c,0x6e,0xf7,0x4d,0x5b,0x02,0xb6,0x41,0xd2,0xa8,0xf3,0xaf,0x29,0x4c,0xc8,0x23,0x01,0x04,0x33,0x72,0x38,0x9b,0xc3,0xc0,0xd7,0xdd,0xb3,0xd5,0x2b,0xcd,0x92,0x9d,0x62,0x68,0xa5,0x4a,0xf1,0x66,0xa3,0x09,0x8d,0xe3,0x73,0x9f,0xaa,0xa4,0xcb,0xfc,0xb0,0xc5,0x22,0x36,0xf5,0x81,0x15,0x6b,0xe9,0xad,0x67,0xd1,0xe4,0xdf,0x76,0x3f,0x47,0x6c,0x7c,0x87,0x43,0x20,0xf8,0xe6,0x12,0x39,0xda,0x7f,0xe0,0x14,0x88,0x8c,0xa0,0x9a,0xcc,0x06,0xb1,0xa7,0x94,0x80,0xe7,0x2a,0x16,0x75,0x08,0x0b,0x54,0x69,0x10,0xd8,0x34,0x30,0xfa,0x17,0x89,0xf2,0x5a,0xee,0xbd,0x72};

二、函数实体
unsigned int SJhs()                //随机函数
{
int j;
int n1=101;
unsigned char ch;
union gtt
{
        unsigned int a1;
        unsigned char a2[8];
}gtt1;
        kk--;
        if(kk==-1)
        {
        for(j=0;j<256;j++)        //单元数组随机排序,生成新的随机数组
                {
                n1=dy1_1[j];
                ch=dy_1[j];
                dy_1[j]=dy_1[n1];
                dy_1[n1]=ch;
                }
        Zy((char*)dy_1,(char*)dy1_1,256,dy_1[1]%7+1);

        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_2[j];
                ch=dy_2[j];
                dy_2[j]=dy_2[n1];
                dy_2[n1]=ch;
                }
                Zy((char*)dy_2,(char*)dy1_2,256,dy_2[1]%7+1);

        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_3[j];
                ch=dy_3[j];
                dy_3[j]=dy_3[n1];
                dy_3[n1]=ch;
                }
                Zy((char*)dy_3,(char*)dy1_3,256,dy_3[1]%7+1);

        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_4[j];
                ch=dy_4[j];
                dy_4[j]=dy_4[n1];
                dy_4[n1]=ch;
                }
                Zy((char*)dy_4,(char*)dy1_4,256,dy_4[1]%7+1);

        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_5[j];
                ch=dy_5[j];
                dy_5[j]=dy_5[n1];
                dy_5[n1]=ch;
                }
                Zy((char*)dy_5,(char*)dy1_5,256,dy_5[1]%7+1);

        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_6[j];
                ch=dy_6[j];
                dy_6[j]=dy_6[n1];
                dy_6[n1]=ch;
                }
                Zy((char*)dy_6,(char*)dy1_6,256,dy_6[1]%7+1);
        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_7[j];
                ch=dy_7[j];
                dy_7[j]=dy_7[n1];
                dy_7[n1]=ch;
                }
                Zy((char*)dy_7,(char*)dy1_7,256,dy_7[1]%7+1);
        for(j=0;j<256;j++)        //单元数组随机排序
                {
                n1=dy1_8[j];
                ch=dy_8[j];
                dy_8[j]=dy_8[n1];
                dy_8[n1]=ch;
                }
                Zy((char*)dy_8,(char*)dy1_8,256,dy_8[1]%7+1);
                kk=255;
        }
        gtt1.a2[0]=dy_1[kk];
        gtt1.a2[1]=dy_2[kk];
        gtt1.a2[2]=dy_3[kk];
        gtt1.a2[3]=dy_4[kk];
        gtt1.a2[4]=dy_5[kk];
        gtt1.a2[5]=dy_6[kk];
        gtt1.a2[6]=dy_7[kk];
        gtt1.a2[7]=dy_8[kk];
        return gtt1.a1;
}

void CSHhs(char* zz)//初始化函数
{
int i,j;
int n1=101;
unsigned char ch;
CString aa,bb="";

        for(i=0;i<zz[1]*zz[1];i++)                //关联用户密码
        {
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(256+n1+dy_1[j]+j+
        zz[j%strlen(zz)]+i)%256;                //关联用户密码
        ch=dy_1[j];
        dy_1[j]=dy_1[n1];
        dy_1[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_2[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_2[j];
        dy_2[j]=dy_2[n1];
        dy_2[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_3[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_3[j];
        dy_3[j]=dy_3[n1];
        dy_3[n1]=ch;
                }

                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_4[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_4[j];
        dy_4[j]=dy_4[n1];
        dy_4[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_5[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_5[j];
        dy_5[j]=dy_5[n1];
        dy_5[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_6[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_6[j];
        dy_6[j]=dy_6[n1];
        dy_6[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_7[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_7[j];
        dy_7[j]=dy_7[n1];
        dy_7[n1]=ch;
                }
                for(j=0;j<256;j++)                        //单元数组随机排序
                {
        n1=(n1+dy_8[j]+j+zz[j%strlen(zz)]+i)%256;//用户密码关联
        ch=dy_8[j];
        dy_8[j]=dy_8[n1];
        dy_8[n1]=ch;
                }
        }
        kk=255;
}

//字节数组左移n个字节                        左移n = 右移N-n
char* Zx(char *s1,char *s2, int N, int n)
{
        for(int i=0;i<N;i++)
        {
        s2[i]=s1[n];
        n++;
        if(n==N) n=0;
        }
        s2[N]=0;
        return s2;
}

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 185
活跃值: (25)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
涉及到随机这些东西。 先给出数学公式,评估一下数学上随机分布如何~~ 直接扔代码。很难看懂
2013-12-12 09:38
0
雪    币: 517
活跃值: (84)
能力值: ( LV12,RANK:250 )
在线值:
发帖
回帖
粉丝
3
#include <stdlib.h>

#pragma warning(push)
#pragma warning(disable:4244) //warning C4244: “初始化”: 从“ULONG64”转换到“const unsigned int”,可能丢失数据
TULONG xrand(const TULONG mod)
  {
  //! 由于重要性不是很高,随机数的生成可以忽视多线程读写问题
  static TULONG gk_xrand_seed = 0;
  const TULONG r = __rdtsc();
#if _WIN64
  const int l = r % 0x40;
  gk_xrand_seed += _rotl64(r,l);
#else
  const int l = r % 0x20;
  gk_xrand_seed += _lrotl(r,l);
#endif
  return (mod) ? (gk_xrand_seed % mod) : (gk_xrand_seed);
  }
#pragma warning(pop)

我这函数的随机性能如何?求评估
2013-12-12 09:54
0
雪    币: 62
活跃值: (27)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
4
fips上有随机数测试软件,去测一下,看能有几项能通过。
2013-12-12 17:14
0
雪    币: 11
活跃值: (40)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
额……把冗余计算按比例减少一部分……然后再进行评估……
2013-12-12 18:23
0
游客
登录 | 注册 方可回帖
返回
//