Changeset 2a301ff for tests/PRNG.cfa


Ignore:
Timestamp:
Aug 31, 2023, 11:31:15 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
950c58e
Parents:
92355883 (diff), 686912c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Resolve conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/PRNG.cfa

    r92355883 r2a301ff  
    1010// Created On       : Wed Dec 29 09:38:12 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu May 25 15:39:52 2023
    13 // Update Count     : 422
     12// Last Modified On : Mon Aug 14 08:49:53 2023
     13// Update Count     : 425
    1414//
    1515
     
    2727#define str(s) #s
    2828
    29 #if defined( __x86_64__ ) || defined( __aarch64__ )             // 64-bit architecture
    30 #define PRNG PRNG64
    31 #else                                                                                                   // 32-bit architecture
    32 #define PRNG PRNG32
    33 #endif // __x86_64__
    34 
    3529//#define TIME
    3630
     
    144138        srand( rseed );
    145139
    146         sout | sepDisable;
     140        sout | sepOff;
    147141        sout | nl | wd(26, "rand()" ) | wd(12, "rand(5)") | wd(12, "rand(0,5)" );
    148142        for ( 20 ) {
     
    151145                sout | wd(12, rand() % (5 - 0 + 1) + 0);
    152146        } // for
    153         sout | sepEnable;
     147        sout | sepOn;
    154148        sout | "seed" | rseed;
    155149
     
    185179        if ( seed != 0 ) set_seed( prng, seed );
    186180
    187         sout | sepDisable;
     181        sout | sepOff;
    188182        sout | nl | wd(26, "PRNG()" ) | wd(12, "PRNG(5)") | wd(12, "PRNG(0,5)" );
    189183        for ( 20 ) {
     
    192186                sout | wd(12, prng( prng, 0, 5 ));
    193187        } // for
    194         sout | sepEnable;
     188        sout | sepOn;
    195189        sout | "seed" | get_seed( prng );
    196190
     
    220214        if ( seed != 0 ) set_seed( seed );
    221215
    222         sout | sepDisable;
     216        sout | sepOff;
    223217        sout | nl | wd(26, "prng()" ) | wd(12, "prng(5)") | wd(12, "prng(0,5)" );
    224218        for ( 20 ) {
     
    227221                sout | wd(12, prng( 0, 5 ));
    228222        } // for
    229         sout | sepEnable;
     223        sout | sepOn;
    230224        sout | "seed" | get_seed( prng );
    231225
     
    256250        thread$ & th = *active_thread();
    257251
    258         sout | sepDisable;
     252        sout | sepOff;
    259253        sout | nl | wd(26, "prng(t)" ) | wd(12, "prng(t,5)") | wd(12, "prng(t,0,5)" );
    260254        for ( 20 ) {
     
    263257                sout | wd(12, prng( th, 0, 5 ));
    264258        } // for
    265         sout | sepEnable;
     259        sout | sepOn;
    266260        sout | "seed" | get_seed( prng );
    267261
Note: See TracChangeset for help on using the changeset viewer.