Home
last modified time | relevance | path

Searched refs:myRandomNumber (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/io/disktest/
Dsfunc.c72 long myRandomNumber = 0; in Rand32() local
74 myRandomNumber = ((long)(rand() & 0x7FFF)) << 16; in Rand32()
75 myRandomNumber |= ((long)(rand() & 0x7FFF)) << 1; in Rand32()
76 myRandomNumber |= ((long)(rand() & 0x1)); in Rand32()
78 return (myRandomNumber); in Rand32()
86 OFF_T myRandomNumber = 0; in Rand64() local
88 myRandomNumber = ((OFF_T) (rand() & 0x7FFF)) << 48; in Rand64()
89 myRandomNumber |= ((OFF_T) (rand() & 0x7FFF)) << 33; in Rand64()
90 myRandomNumber |= ((OFF_T) (rand() & 0x7FFF)) << 18; in Rand64()
91 myRandomNumber |= ((OFF_T) (rand() & 0x7FFF)) << 3; in Rand64()
[all …]