Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Is random_number a pure intrinsic

pms549
Beginner
620 Views
Hi

Can someone tell me if the random_number intrinsic subroutine is supposed to be pure? The compiler complains when I use it in a pure procedure. I have used it like that with CVF, fujitsu, lahey-fujitsu and Sun compilers in the past and none of them have complained.

Thanks alot,

Paul
0 Kudos
1 Reply
Steven_L_Intel1
Employee
620 Views
No, RANDOM_NUMBER is not pure. CVF not detecting this was a bug. The only intrinsic subroutine which is PURE is MVBITS.

Steve
0 Kudos
Reply