| 6205 | |
| 6206 | |
| 6207 | dsc* evlRand(thread_db* tdbb, const SysFunction*, const NestValueArray& args, |
| 6208 | impure_value* impure) |
| 6209 | { |
| 6210 | fb_assert(args.getCount() == 0); |
| 6211 | |
| 6212 | SINT64 n; |
| 6213 | tdbb->getAttachment()->att_random_generator.getBytes(&n, sizeof(n)); |
| 6214 | n &= QUADCONST(0x7FFFFFFFFFFFFFFF); // remove the sign |
| 6215 | |
| 6216 | impure->vlu_misc.vlu_double = (double) n / (double) MAX_SINT64; |
| 6217 | impure->vlu_desc.makeDouble(&impure->vlu_misc.vlu_double); |
| 6218 | |
| 6219 | return &impure->vlu_desc; |
| 6220 | } |
| 6221 | |
| 6222 | |
| 6223 | dsc* evlReplace(thread_db* tdbb, const SysFunction*, const NestValueArray& args, |
nothing calls this directly
no test coverage detected