1.1 openssl speed 测试加密算法的性能 支持的算法有: openssl speed [md2] [mdc2] [md5] [hmac] [sha1] [rmd160] [idea-cbc] [rc2-cbc] [rc5-cbc] [bf-cbc] [des-cbc] [des-ede ...
分类:
其他好文 时间:
2018-10-03 21:35:06
阅读次数:
221
/** * 指定范围的随机数 */ public static int getRandom(int min, int max) { Random random = new Random(); return random.nextInt(max) % (max - min + 1) + min; } ...
分类:
其他好文 时间:
2018-10-03 00:20:45
阅读次数:
163
1 #include 2 #include 3 /* 4 从尾到头打印链表。 5 思路:利用递归调用逐级返回的特性,也就是栈的特性:先进后出,后进先出。 6 */ 7 typedef struct node 8 { 9 int data; 10 struct node * next; 11 }NOD... ...
分类:
其他好文 时间:
2018-10-01 15:32:37
阅读次数:
148
1、random简介 用于生成伪随机数。 2、随机生成整数 2.1、random.randrange(stop) 生成整数随机数,stop必须是正整数。 2.1.1、随机生成一个100以内的正整数 2.1.2、随机生成10个0~9之间(包括0和9)的随机数列表。 输出结果: 2.2、random.r ...
分类:
编程语言 时间:
2018-10-01 10:34:08
阅读次数:
185
1.什么是redis? Redis 是一个基于内存的高性能key-value数据库。 2.Reids的特点 Redis本质上是一个Key-Value类型的内存数据库,很像memcached,整个数据库统统加载在内存当中进行操作,定期通过异步操作把数据库数据flush到硬盘上进行保存。因为是纯内存操作 ...
分类:
其他好文 时间:
2018-09-30 19:54:28
阅读次数:
174
#include<stdio.h>int main(){ int x,y,i,a,j,k,d; for(i=0;i<15;i++) { x=rand()%(9-1+1)+1; y=rand()%(9-1+1)+1; a=rand()%(4-1+1)+1; j=rand()%(9-1+1)+1; k= ...
分类:
其他好文 时间:
2018-09-29 22:47:49
阅读次数:
199
源程序代码: #include<stdio.h>int main(){ int i,a,b,c,d,m; for(i=0;i<30;i++) { a=rand()%(10-1+1)+1; b=rand()%(10-1+1)+1; c=rand()%(10-1+1)+1; d=rand()%(10-1 ...
分类:
其他好文 时间:
2018-09-29 22:45:59
阅读次数:
138
源程序代码: #include<stdio.h>int main(){ int i,a,b,m; for(i=0;i<30;i++) { a=rand()%(99-10+1)+10; b=rand()%(99-10+1)+10; m=rand()%(4-1+1)+1; { if(m==1) prin ...
分类:
其他好文 时间:
2018-09-29 21:38:06
阅读次数:
166
#include<stdio.h> #include <stdlib.h> int main() { int i,a,b,c,d; printf("这是我编辑的简易四则运算\n"); for(i = 0; i <100; i++) { a=rand()%(99-0+1)+0; b=rand()%(9 ...
分类:
其他好文 时间:
2018-09-29 21:33:33
阅读次数:
134
消费者 由于消费者那里,@Payload是接受的消息体,使用了@Header注解,需要请求头,生产者这边就要设置,如下代码: 这是RabbitTemplate中的converAndSend(exchang,routingKey,消息体,消息头)方法。 ...
分类:
其他好文 时间:
2018-09-29 16:02:43
阅读次数:
929