Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaliday committed Apr 25, 2012
1 parent 7d91016 commit f0c8e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
@@ -0,0 +1,2 @@
# select
A simple implementation of quickselect for order statistics.
1 change: 0 additions & 1 deletion select.cc
Expand Up @@ -26,7 +26,6 @@ RAI partition(RAI first, RAI pivot, RAI last) {
template <typename RAI>
RAI random_partition(RAI first, RAI last) {
if (first == last) return first;
srand(time(NULL));
RAI pivot = first + rand() % (last - first);
return partition(first, pivot, last);
}
Expand Down

0 comments on commit f0c8e32

Please sign in to comment.