aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/mmap.c')
-rw-r--r--arch/x86/mm/mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c
index 1dab5194fd9..f927429d07c 100644
--- a/arch/x86/mm/mmap.c
+++ b/arch/x86/mm/mmap.c
@@ -87,9 +87,9 @@ static unsigned long mmap_rnd(void)
87 */ 87 */
88 if (current->flags & PF_RANDOMIZE) { 88 if (current->flags & PF_RANDOMIZE) {
89 if (mmap_is_ia32()) 89 if (mmap_is_ia32())
90 rnd = (long)get_random_int() % (1<<8); 90 rnd = get_random_int() % (1<<8);
91 else 91 else
92 rnd = (long)(get_random_int() % (1<<28)); 92 rnd = get_random_int() % (1<<28);
93 } 93 }
94 return rnd << PAGE_SHIFT; 94 return rnd << PAGE_SHIFT;
95} 95}