OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library sample_synchronous_extension; | 5 library sample_synchronous_extension; |
6 | 6 |
7 import 'dart-ext:sample_extension'; | 7 import 'dart-ext:sample_extension'; |
8 | 8 |
9 // The simplest way to call native code: top-level functions. | 9 // The simplest way to call native code: top-level functions. |
10 int systemRand() native "SystemRand"; | 10 int systemRand() native "SystemRand"; |
| 11 int noScopeSystemRand() native "NoScopeSystemRand"; |
11 bool systemSrand(int seed) native "SystemSrand"; | 12 bool systemSrand(int seed) native "SystemSrand"; |
OLD | NEW |