Skip to content

Use syscall from libc instead of defining a copy of it. #610

@eddyb

Description

@eddyb

Looks like the version of libc rand depends on has syscall, with the same signature, even, as:

rand/src/rngs/os.rs

Lines 421 to 423 in e2770c3

extern "C" {
fn syscall(number: libc::c_long, ...) -> libc::c_long;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyParticipation: easy job

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions