提交 314f8477 编写于 作者: A Akinobu Mita 提交者: Linus Torvalds

video/uvesafb: rename random32() to prandom_u32()

Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Cc: Michal Januszewski <spock@gentoo.org>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2e744fcb
...@@ -166,7 +166,7 @@ static int uvesafb_exec(struct uvesafb_ktask *task) ...@@ -166,7 +166,7 @@ static int uvesafb_exec(struct uvesafb_ktask *task)
memcpy(&m->id, &uvesafb_cn_id, sizeof(m->id)); memcpy(&m->id, &uvesafb_cn_id, sizeof(m->id));
m->seq = seq; m->seq = seq;
m->len = len; m->len = len;
m->ack = random32(); m->ack = prandom_u32();
/* uvesafb_task structure */ /* uvesafb_task structure */
memcpy(m + 1, &task->t, sizeof(task->t)); memcpy(m + 1, &task->t, sizeof(task->t));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册