Skip to content

Commit

Permalink
Add std.random import for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Sep 28, 2011
1 parent 78a2d8a commit 8d97eb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/range.d
Expand Up @@ -5937,6 +5937,8 @@ if (isRandomAccessRange!Range)
if(!__ctfe)
debug
{
import std.random;

// Check the sortedness of the input
if (this._input.length < 2) return;
immutable size_t msb = bsr(this._input.length) + 1;
Expand Down

0 comments on commit 8d97eb3

Please sign in to comment.