Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\random32.c Create Date:2022-07-28 06:19:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prandom_u32 - pseudo random number generator* A 32 bit pseudo-random number is generated using a fast* algorithm suitable for simulation. This algorithm is NOT* considered safe for cryptographic use.

Proto:u32 prandom_u32(void)

Type:u32

Parameter:Nothing

81  state = Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(net_rand_state)
84  res = prandom_u32_state(state)
85  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(net_rand_state)
87  Return res