Ignore:
Timestamp:
03/29/24 23:30:34 (5 months ago)
Author:
Maciej Komosinski
Message:

Introduced overloads for rndUint() with size_t and int arguments to avoid numerous type casts in sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_oper.cpp

    r1274 r1298  
    253253                                return GENOPER_OPFAIL;
    254254
    255                         node_mutated = candidate_nodes[rndUint((unsigned int)candidate_nodes.size())];
     255                        node_mutated = candidate_nodes[rndUint(candidate_nodes.size())];
    256256                        f4_Node *node_mutated_parent = node_mutated->parent;
    257257
Note: See TracChangeset for help on using the changeset viewer.