Uploaded image for project: 'Swift'
  1. Swift
  2. SR-685

Can't use arc4random on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Component/s: Standard Library
    • Labels:
    • Environment:

      swift-DEVELOPMENT-SNAPSHOT-2016-02-03
      Linux x64

      Description

      Welcome to Swift version 3.0-dev (LLVM 524cfeb800, Clang 35aeed5957, Swift 7f77733b0c). Type :help for assistance.
        1> import Glibc
        2> arc4random_uniform(2)
      repl.swift:2:1: error: use of unresolved identifier 'arc4random_uniform'
      

      I'm not aware of any workaround for this issue.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              drewcrawford Drew Crawford
            • Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: