Skip to content

optval issue in stdlib_random module #592

Open
@zoziha

Description

@zoziha

Description

During a development, I found an unexpected situation: swapping optval(s, si) in the stdlib_random for if (present(s)) then .. form, and unit tests of macos and ubuntu systems failed.

image
(see https://github.com/zoziha/stdlib/commits/update_random)

Possible Problem

si = res + int01

Maybe:

res = res + int01 !?

cc @Jim-215-Fisher

Expected Behaviour

CI failed: https://github.com/zoziha/stdlib/actions/runs/1554566528

Expected behaviour: optval == if (present(..)) then ..

Version of stdlib

100f760

Platform and Architecture

MacOS, GFortran 9 10 11; Ubuntu, GFortran 10

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions