Skip to content

Commit

Permalink
Merge pull request #2614 from AmeBel/psi
Browse files Browse the repository at this point in the history
An openpsi udate
  • Loading branch information
amebel committed Feb 15, 2017
2 parents 7a0b938 + 119137d commit f379e07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opencog/openpsi/action-selector.scm
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@
(define total-weight (accum-weight sorted-rules))

; Pick a number from 0.0 to total-weight.
(define cutoff (* total-weight (random:uniform)))
(define cutoff (* total-weight
(random:uniform (random-state-from-platform))))

; Recursively move through the list of rules, until the
; sum of the weights of the rules exceeds the cutoff.
Expand Down

0 comments on commit f379e07

Please sign in to comment.